简体   繁体   English

npm install ghost失败,代码为EPERM errno -4048 syscall重命名(在Windows上)

[英]npm install ghost fails with code EPERM errno -4048 syscall rename (on Windows)

During the install of Ghost with npm version 3.8.x, the following errors occur: 使用npm 3.8.x安装Ghost的过程中,发生以下错误:

npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.8
npm WARN Gonzah@0.0.1 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

After searching for a day to figure this out, it's apparently tied to a known bug in npm v3.8 ( https://github.com/npm/npm/issues/10379#issuecomment-163316532 ). 在寻找一天来解决这个问题之后,它显然与npm v3.8( https://github.com/npm/npm/issues/10379#issuecomment-163316532 )中的一个已知错误有关。

The solution is to temporarily downgrade npm to v2 to perform the install. 解决方案是将npm暂时降级到v2以执行安装。 Do this: 做这个:

npm uninstall npm -g
npm install npm@2 -g
npm install ghost

Then of course feel free to update npm to the latest version again. 然后当然可以随时将npm更新为最新版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 npm 发布导致“错误:EPERM:不允许操作,取消链接...”,错误号 -4048 - npm publish causes 'Error: EPERM: operation not permitted, unlink ...', errno -4048 npm 安装代码 ENOENT 和系统调用重命名问题 - npm install code ENOENT & syscall rename issue 安装失败 npm package "npm ERR!errno -4048" - Fail to install npm package "npm ERR! errno -4048" 无法使用 npm errno -4048 package.json 安装 angular cli - Unable to install angular cli with npm errno -4048 package.json 多个npm安装失败(EPERM错误) - Multiple npm install fails (EPERM error) 尝试安装节点包时遇到错误代码 ENOENT syscall rename errno -4058 - Facing error code ENOENT syscall rename errno -4058 while trying to install node packages 如果我保留 package-lock.json 文件,则无法安装 npm 包,npm ERR! 安装类型 npm 后出现错误 -4048 - Fail to install npm packages if i keep the package-lock.json file, npm ERR! errno -4048 after type npm install 在Windows / Azure中重命名长路径时,npm 3.x安装失败 - npm 3.x install fails on rename long paths in Windows/Azure npm 错误! 代码 ENOENT npm ERR! 系统调用重命名 - npm ERR! code ENOENT npm ERR! syscall rename 使用 nodejs 应用程序作为 Windows 服务会导致 EPERM-4048 错误 - Using nodejs app as Windows Service causes EPERM-4048 ERROR
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM