Skip to content

Instantly share code, notes, and snippets.

@VictorRomano
Created December 10, 2018 12:22
Show Gist options
  • Save VictorRomano/c28da15ef434d4dc6a98481fa03130c6 to your computer and use it in GitHub Desktop.
Save VictorRomano/c28da15ef434d4dc6a98481fa03130c6 to your computer and use it in GitHub Desktop.
Change location of NodeJS global folder
# 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