node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

npm-sudo-fix

Sudo fix

npm install -g requiring sudo? This module sets the permissions so that you don't need sudo.

Usage

$ sudo npm install -g npm-sudo-fix
$ sudo npm-sudo-fix
 

Warning

Do not use this if you are on a shared system.