Skip to content

Instantly share code, notes, and snippets.

@dmythro
Created December 11, 2014 19:02
Show Gist options
  • Save dmythro/2ec415ce39f93049720b to your computer and use it in GitHub Desktop.
Save dmythro/2ec415ce39f93049720b to your computer and use it in GitHub Desktop.
NPM: Install global (-g) into a local user directory
# Set NPM paths prefix
npm config set prefix ~/.npm-g
# Add to ~/.bash_profile
export PATH=$HOME/.npm-g/bin:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment