Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm rebuild fails - node cannot unlink itself #63

Open
meustrus opened this issue May 16, 2019 · 0 comments
Open

npm rebuild fails - node cannot unlink itself #63

meustrus opened this issue May 16, 2019 · 0 comments

Comments

@meustrus
Copy link

I'm trying to rebuild my dependencies (including [email protected]) with npm rebuild on Windows, and I get this error:

Error: EPERM: operation not permitted, unlink 'C:\myrepo\node_modules\node\bin\node.exe'
    at Object.unlinkSync (fs.js:951:3)
    at linkSync (C:\myrepo\node_modules\node-bin-setup\index.js:47:8)
    at ChildProcess.<anonymous> (C:\myrepo\node_modules\node-bin-setup\index.js:31:5)
    at ChildProcess.emit (events.js:189:13)
    at maybeClose (internal/child_process.js:970:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] preinstall: `node installArchSpecificPackage`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

This might only be an issue on Windows, which does not allow modifications to the executable of a currently running process. I think Linux is perfectly happy to do allow it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant