2016-04-17 15 views
0

während der Installation von Ghost mit npm Version 3.8.x, die folgenden Fehler auftreten:npm Geist installiert werden kann mit dem Code EPERM errno -4048 syscall Umbenennungs (unter Windows)

npm WARN optional Skipping failed optional dependency /chokidar/fsevents: 
npm WARN notsup Not compatible with your operating system or architecture: [email protected] 
npm WARN [email protected] No repository field. 
npm ERR! Windows_NT 10.0.10586 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\aosman\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "ghost" 
npm ERR! node v4.3.2 
npm ERR! npm v3.8.1 
npm ERR! path D:\elastc-app\node_modules\ghost 
npm ERR! code EPERM 
npm ERR! errno -4048 
npm ERR! syscall rename 

npm ERR! Error: EPERM: operation not permitted, rename 'D:\elastc-app\node_modules\ghost' -> 'D:\elastc-app\node_modules\.ghost.DELETE' 
npm ERR!  at moveAway (C:\Users\aosman\AppData\Roaming\npm\node_modules\npm\lib\install\action\finalize.js:38:5) 
npm ERR!  at destStatted (C:\Users\aosman\AppData\Roaming\npm\node_modules\npm\lib\install\action\finalize.js:27:7) 
npm ERR!  at FSReqWrap.oncomplete (fs.js:82:15) 
npm ERR! 
npm ERR! Error: EPERM: operation not permitted, rename 'D:\elastc-app\node_modules\ghost' -> 'D:\elastc-app\node_modules\.ghost.DELETE' 
npm ERR!  at Error (native) 
npm ERR! { [Error: EPERM: operation not permitted, rename 'D:\elastc-app\node_modules\ghost' -> 'D:\elastc-app\node_modules\.ghost.DELETE'] parent: 'Gonzah' } 
npm ERR! 
npm ERR! Please try running this command again as root/Administrator. 

npm ERR! Please include the following file with any support request: 
npm ERR!  D:\elastc-app\npm-debug.log 

Nach einem Tag gesucht um das herauszufinden, ist es offensichtlich mit einem bekannten Fehler in npm v3.8 (https://github.com/npm/npm/issues/10379#issuecomment-163316532) verbunden.

Antwort

0

Die Lösung ist vorübergehend downgrade npm zu v2, um die Installation durchzuführen. Tun Sie dies:

npm uninstall npm -g 
npm install [email protected] -g 
npm install ghost 

Dann natürlich frei, update npm auf die neueste Version wieder.

Verwandte Themen