There's a solution for npm on Mac in general.
-
sudo npm config set registry http://registry.npmjs.org/
-
chown [username] .npm
Anyone interested to debug more and solve the issue can try
I worked with a co-worker this afternoon and figured out what the problem was. My ".npm" folder in my home directory was owned by the root user instead of myself. I'm not sure what happened to cause that. Maybe I installed node or npm as the root admin at one point. In any case I just ran "chown [username] .npm" and I was finally able to run "npm install" commands from my projects again!
share|improve this answer
answered Mar 5 at 19:55
TJ Kirchner
4341618