Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm windows missing write access

I'm getting this message

npm WARN checkPermissions Missing Write Access to D:\my\path\node_module\bcrypt

while installing bcrypt package using npm i bcrypt

I tried executing the commands from cmd as an administrator and also from powershell, nothing worked. I also cleared the cache npm cache clean and manually deleted %AppData%/npm_cache directory.

I'm using:
npm 3.7.3
node 5.9.1
windows 7

Why isn't npm getting the permission to write?

Note that npm can install and write other modules(i.e angular2,mongoose,express etc) just fine.

like image 988
rakeen Avatar asked Oct 16 '25 03:10

rakeen


1 Answers

In my case it was a permission/owner issue. I deleted node_modules and ran npm install again without problems.

like image 141
altschuler Avatar answered Oct 18 '25 19:10

altschuler



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!