Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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