Node Get Rid of Npm Sudo
NPM: Requires sudo to install
If npm
requires you to sudo
to install, then you should reclaim ownership of npm
:
sudo chown -R `whoami` ~/.npm
You also need to reclaim your local library:
sudo chown -R `whoami` /usr/local/lib/node_modules