Skip to content

Instantly share code, notes, and snippets.

@sava-vidakovic
Last active August 29, 2015 14:26
Show Gist options
  • Save sava-vidakovic/f70571888df528fa1b5f to your computer and use it in GitHub Desktop.
Save sava-vidakovic/f70571888df528fa1b5f to your computer and use it in GitHub Desktop.
npm sudo
A shell script which will fix the problem where you want to stop using sudo for npm -g on Ubuntu.
https://github.com/glenpike/npm-g_nosudo
# Note the new setup script name for Node.js v0.12
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
# Then install with:
sudo apt-get install -y nodejs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment