Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Error: EPERM: operation not permitted, rename while running Jenkins build on Windows machine #14136

Closed
MohdIrfanKhan opened this issue Sep 30, 2016 · 4 comments

Comments

@MohdIrfanKhan
Copy link

I guess this problem is random, linked to some file locks or so....

error : npm ERR! Windows_NT 6.1.7601
error : npm ERR! argv "D:\SharedComponents\NodeJs\4.4.2\node.exe" "D:\NodeJs\4.4.2\node_modules\npm\bin\npm-cli.js" "install" "--no-optional"
error : npm ERR! node v4.4.2
error : npm ERR! npm v3.8.5
error : npm ERR! path C:\Users\AppData\Roaming\npm-cache\readable-stream\2.1.4\package.tgz.1363764457
error : npm ERR! code EPERM
error : npm ERR! errno -4048
error : npm ERR! syscall rename
error : npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\AppData\Roaming\npm-cache\readable-stream\2.1.4\package.tgz.1363764457' -> 'C:\Users\AppData\Roaming\npm-cache\readable-stream\2.1.4\package.tgz'
error : npm ERR! at Error (native)
error : npm ERR! { [Error: EPERM: operation not permitted, rename 'C:\Users\AppData\Roaming\npm-cache\readable-stream\2.1.4\package.tgz.1363764457' -> 'C:\Users\AppData\Roaming\npm-cache\readable-stream\2.1.4\package.tgz']
error : npm ERR! errno: -4048,
error : npm ERR! code: 'EPERM',
error : npm ERR! syscall: 'rename',
error : npm ERR! path: 'C:\Users\cciserver\AppData\Roaming\npm-cache\readable-stream\2.1.4\package.tgz.1363764457',
error : npm ERR! dest: 'C:\Users\AppData\Roaming\npm-cache\readable-stream\2.1.4\package.tgz' }
error : npm ERR!
error : npm ERR! Please try running this command again as root/Administrator.
error : npm ERR! Please include the following file with any support request:
error : npm ERR! D:\npm-debug.log
error MSB3073: The command ""....\NodeJs\4.4.2\npm.cmd" install --no-optional" exited with code -4048.

@legodude17
Copy link
Contributor

Try what the error message says, run the command as root/Admin. Also can you post the command that you are running when you get this?

@MohdIrfanKhan
Copy link
Author

"D:\NodeJs\4.4.2\node.exe" "D:\NodeJs\4.4.2\node_modules\npm\bin\npm-cli.js" "run" "lint"

@legodude17
Copy link
Contributor

Your original post has the argv as npm install --no-optional. Is it both? It seems very odd that npm run lint would be trying to rename things.

@npm-robot
Copy link

We're closing this issue as it has gone seven days without activity and without being labeled. If we haven't even labeled in issue in seven days then we're unlikely to ever read it.

If you are still experiencing the issue that led to you opening this or this is a feature request you're still interested in then we encourage you to open a new issue. If this was a support issue, you may be better served by joining package.communty and asking your question there.

For more information about our new issue aging policies and why we've instituted them please see our blog post.

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

No branches or pull requests

3 participants