Install NPM Packages Globally Without Sudo On Macos and Linux
Install NPM Packages Globally Without Sudo On Macos and Linux
Slayug Append to $PATH, not prepend, in the npm global guide on Fish shell (#57 … Latest commit 3f4ad3e on Jul 6, 2020 History
6 contributors
mkdir "${HOME}/.npm-packages"
NPM_PACKAGES="${HOME}/.npm-packages"
export PATH="$PATH:$NPM_PACKAGES/bin"
If you have erased your MANPATH by mistake, you can restore it by running set -Ux MANPATH (manpath -g) $MANPATH once. Do not put this
command in your config.fish .
NOTE: If you are running macOS, the .bashrc file may not yet exist, and the terminal will be obtaining its environment parameters from
another file, such as .profile or .bash_profile . These files also reside in the user's home folder. In this case, simply adding the following
line to them will instruct Terminal to also load the .bashrc file:
source ~/.bashrc
© 2021 GitHub, Inc. Terms Privacy Security Status Docs Contact GitHub Pricing API Training Blog About