2016-04-17 31 views
0

で失敗し、次のエラーが発生します。NPMは(Windowsの場合)コードEPERMにerrno -4048システムコールリネーム<strong>NPM</strong>バージョン3.8.xとゴーストのインストール時に

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 

日のために検索した後これを理解するために、明らかにnpm v3.8(https://github.com/npm/npm/issues/10379#issuecomment-163316532)の既知のバグに結びついています。

答えて

0

解決方法は、インストールを実行するために一時的にnpmからv2にダウングレードすることです。これを行う:

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

もちろん、npmを最新のバージョンに更新することもできます。

関連する問題