A shell script which will fix the problem where you want to stop using sudo for npm -g on Ubuntu.
Inspired by a day trying to sort various machines out on our system to run code nicely and this Stackoverflow answer
Tested on Ubuntu 14.04 with Bash
Download the script, run it:
$ ./npm-g-nosudo.sh
It will fix your .bashrc .zshrc file(s) automatically to use the settings from Sindre Sorhus' Guide
MIT © Glen Pike