Skip to content

Instantly share code, notes, and snippets.

@theor
Created February 9, 2015 23:16
Show Gist options
  • Save theor/8d43490b76d510586b86 to your computer and use it in GitHub Desktop.
Save theor/8d43490b76d510586b86 to your computer and use it in GitHub Desktop.
NPM no-sudo config
Ubuntu 12.04 and using Chris Lea's PPA for install the following works for me:
npm config set prefix ~/npm
and adding $HOME/npm/bin to $PATH
append to .bashrc
export PATH="$PATH:$HOME/npm/bin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment