npm windows missing write access

10,046

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

Share:
10,046
Author by

rakeen

Updated on June 04, 2022

Comments

  • rakeen 6 months

    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.