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.

npm install not permitted

See original GitHub issue

In https://github.com/jupyterhub/binderhub/issues/558 @aborruso reports:

Hi, I have npm install -g mapshaper in postBuild, but I’m blocked because I’m not root.

Is there another way to install a nodejs package and have it ready to use after building?

Thank you

Does anyone remember why we decided that postBuild should not run as root?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
minrkcommented, May 23, 2018

If we installed npm itself with conda or nvm, then npm install -g would work without permission issues. I think there’s also an NPM_ROOT/PREFIX env or something that should specify where -g installs would go. That could be pointed to a prefix that’s on PATH and user-writable.

1reaction
choldgrafcommented, May 19, 2018

indeed! thanks for the quick fix @aborruso and the subsequent .local patch in #313 @yuvipanda !

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm - EPERM: operation not permitted on Windows
My Solution for the problem · Right-click on the project folder · Go to properties -> Security Tab · Select Users -> Edit...
Read more >
npm install fails on Windows: "Error: EPERM: operation not ...
I work on Windows 10, up to date installation. npm i runs in powershell node v5.2.0 npm v3.3.12 This error occures every time....
Read more >
Fixing intermittant 'EPERM: operation not permitted' on npm ...
The npm install step in my Teamcity CI build for an angular app I have been working has been failing intermittently and I...
Read more >
Solution to npm install "npm ERR! Error: EPERM - webfoobar
Error: EPERM: operation not permitted " error. I was trying to install pngquant imagemin plugin using this command: npm install imagemin-pngquant.
Read more >
Error: EPERM: operation not permit… | Apple Developer Forums
I am installing packages for NODEJS/NPM and am receiving the following error, which, apparently, is not an error with the software, but with...
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