npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

The MacBook Pro I just bought uses .bash_profile instead of .profile

Hi, this is with reference to the help article on npm permissions for the Mac found on https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally

The MacBook Pro which I just bought, uses ~/.bash_profile instead of ~/.profile which is also to be created in the root directory.

Do put a caveat on the liner which mentions ~/.profile that the latest Mac uses .bash_profile instead of .profile, thanks!


Shell startup files are complicated! Bash:
https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html