Skip to content

Instantly share code, notes, and snippets.

@newtriks
Created July 3, 2014 08:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save newtriks/f2f74549296e12a2f303 to your computer and use it in GitHub Desktop.
Save newtriks/f2f74549296e12a2f303 to your computer and use it in GitHub Desktop.
Non-sudo npm -g installation
  1. npm set prefix ~/.node
  2. export PATH=$HOME/.node/bin:$PATH >> ~/.profile
  3. wget http://npmjs.org/install.sh or simply download via your browser. This is a shell script from npmjs.org and I found to be safe to run, please ensure you're happy before executing the script.
  4. sh install.sh (note: not sudo)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment