question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

node-gyp permissions issue with installing latest version (2.5.2)

See original GitHub issue

On 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:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jessebyecommented, Sep 25, 2017

@jdxcode confirmed it is bcrypt.

0reactions
dgautschcommented, Oct 14, 2017

Closing this issue out as it was a environment issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found