Created
December 10, 2018 12:22
-
-
Save VictorRomano/c28da15ef434d4dc6a98481fa03130c6 to your computer and use it in GitHub Desktop.
Change location of NodeJS global folder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Source: | |
# https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally | |
mkdir ~/.npm-global | |
npm config set prefix '~/.npm-global' | |
export PATH=~/.npm-global/bin:$PATH | |
source ~/.profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment