4epgea
Last Updated: February 25, 2016
·
334
· stevelacy

Fix npm Error: EACCES, mkdir '/home/user/.npm/*

That error means that you have installed a node module, or created a npm link as root. This could mean that you installed a module globally.

Fix:
sudo chown -R <your username> ~/.npm

That will change ownership of your user's .npm folder to you instead of root.

Filed Under