npm install nw -g报错

goldenMoon 发布于 2017/03/09 17:28
阅读 365
收藏 0

重新安装node.js nw.js报错

end of central directory record signature not found
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\admin\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "nw" "-g"
npm ERR! node v6.10.0
npm ERR! npm  v4.3.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1

npm ERR! nw@0.20.3 postinstall: `node scripts/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nw@0.20.3 postinstall script 'node scripts/install.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the nw package,
npm ERR! not with npm itself.

加载中
0
zabcd117
zabcd117

启动终端或者cmd之行命令的时候,需要管理员权限才行。

npm ERR! code ELIFECYCLE

这个错误就是没有权限之行postinstall的脚本

返回顶部
顶部