node-gyp permissions issue with installing latest version (2.5.2)
See original GitHub issueOn trying to install the latest version via sudo npm install -g npm-register
(Ubuntu 14.04, Node 8.5.0) it hangs with:
**gyp WARN EACCES user "root" does not have permission to access the dev dir "/usr/lib/node_modules/npm-register/node_modules/bcrypt/.node-gyp/8.5.0"
**
This error continues to repeat indefinitely. Had to do a npm config set unsafe-perm true
before I could complete the install.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Can't install on Linux due to permission denied on ~/.node-gyp
I can't install pnpm on Ubuntu 16.04 with node 9.4.0 as sudo. Code to reproduce the issue: $ sudo npm install -g pnpm...
Read more >EACCES: permission denied, access '/usr/lib/node_modules ...
The solution to this problem pointed out when I noticed that while I was trying to install the axios package with npm ,...
Read more >Fixing your NPM Installation - Hackers and Slackers
Resolve a common NPM issue where users receive EACCES error messages upon NPM library installation.
Read more >A Comprehensive Guide to Fixing Node-Gyp Issues on Windows
Try installing an older version of Node. Try installing an older version of Node. If you're on an experimental version, try going back...
Read more >Npm package installation error on other partition
I'm getting this error whenever I install a package from npm on ... /my-app/node_modules/.bin/node-gyp-build: Permission denied npm ERR!
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jdxcode confirmed it is
bcrypt
.Closing this issue out as it was a environment issue.