Skip to content

Instantly share code, notes, and snippets.

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 or simply download via your browser. This is a shell script from and I found to be safe to run, please ensure you're happy before executing the script.
  4. sh (note: not sudo)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment