This repository was archived by the owner on Jul 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 436
This repository was archived by the owner on Jul 24, 2019. It is now read-only.
npm install fails on Windows with "EPERM, operation not permitted" error during rename #19
Copy link
Copy link
Closed
Description
Doing a npm install phantomjs on a Win7 machine is giving me the error below. Looks like everything works up until the very end, when the install script breaks on renaming the phantomjs dir?
I'm running the command under an admin account and I've also tried the "windows key -> type cmd -> right click on cmd icon and Run as administrator" trick but get the same error. I also checked that I have the required privileges on the directories.
Never had problems with installing any npm package before on the same machine.
Any ideas? The ENOTEMPTY error code suggests that the underlying cause is renaming an non-empty dir? 😕
Thanks!
...
Recieved 6605K total.
Extracting zip contents
Read stream closed
Renaming extracted folder phantomjs-1.7.0-windows -> phantom
fs.js:439
return binding.rename(pathModule._makeLong(oldPath),
^
Error: EPERM, operation not permitted 'C:\...\noam\node_modules\phantomjs\tmp\phantomjs-1.7.0-windows'
at Object.fs.renameSync (fs.js:439:18)
at Extract.finishIt (C:\...\noam\node_modules\phantomjs\install.js:73:12)
at Extract.EventEmitter.emit (events.js:123:20)
at ProxyWriter.<anonymous> (C:\...\noam\node_modules\phantomjs\node_modules\unzip\lib\extract.js:34:10)
at ProxyWriter.EventEmitter.emit (events.js:90:17)
at DirWriter.EventEmitter.emit (events.js:90:17)
at end (C:\...\noam\node_modules\phantomjs\node_modules\unzip\node_modules\fstream\lib\writer.js:323:12)
at Writer._finish (C:\...\noam\node_modules\phantomjs\node_modules\unzip\node_modules\fstream\lib\writer.js:313:32)
at endChmod (C:\...\noam\node_modules\phantomjs\node_modules\unzip\node_modules\fstream\lib\writer.js:185:44)
at setProps (C:\...\noam\node_modules\phantomjs\node_modules\unzip\node_modules\fstream\lib\writer.js:293:5)
npm ERR! error rolling back Error: ENOTEMPTY, rmdir 'C:\...\noam\node_modules\phantomjs\tmp\phantomjs-1.7.0-windows'
npm ERR! error rolling back phantomjs@0.2.6 { [Error: ENOTEMPTY, rmdir 'C:\...\noam\node_modules\phantomjs\tmp\phantomjs-1.7.0-windows']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: 'C:\\...\\noam\\node_modules\\phantomjs\\tmp\\phantomjs-1.7.0-windows' }
npm ERR! phantomjs@0.2.6 install: `node install.js`
npm ERR! `cmd "/c" "node install.js"` failed with 1
npm ERR!
npm ERR! Failed at the phantomjs@0.2.6 install script.
npm ERR! This is most likely a problem with the phantomjs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get their info via:
npm ERR! npm owner ls phantomjs
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "phantomjs"
npm ERR! cwd C:\...\noam
npm ERR! node -v v0.8.11
npm ERR! npm -v 1.1.62
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\...\noam\npm-debug.log
npm ERR! not ok code 0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels