I have managed to corrupt my npm install, and whenever I try to install packages using npm install, I receive error messages along these lines:
npm
npm install
Simply run on terminal : sudo chown -R $(whoami) ~/.npm
sudo chown -R $(whoami) ~/.npm
This worked for me !!