npm install not permitted
See original GitHub issueIn 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:
- Created 5 years ago
- Reactions:1
- Comments:6 (5 by maintainers)
Top 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 >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
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.indeed! thanks for the quick fix @aborruso and the subsequent
.local
patch in #313 @yuvipanda !