Nodejs

Fix NPM Error: Attempt To Unlock * Which Hasn't Been Locked

Posted by Weston Ganger on January 21, 2016

I was getting the weird error Attempt to unlock some_module, which hasn’t been locked.

That’s weird, turns out its a permissions thing.


sudo chown -R $USER ~/.npm
sudo chown -R $USER /usr/local/lib/node_modules

# if your on a OSX and still having problems
sudo chown -R $USER /usr/local


Related External Links:


Posted in Node.js and Tagged with npm 


Need help on your next project or application?

I specialize in Ruby-on-Rails, AngularJS, Javascript, Bootstrap, and Hybrid Mobile Apps with Cordova & Ionic.

Contact Me

Recommended Posts