npm install nw -g 报错
end of central directory record signature not found
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\
node_modules\npm\bin\npm-cli.js" "install" "nw" "-g"
npm ERR! node v4.2.2
npm ERR! npm v2.14.7
npm ERR! code ELIFECYCLE
npm ERR! nw@0.14.5 postinstall: `node scripts/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nw@0.14.5 postinstall script 'node scripts/install.js'.
npm ERR! This is most likely a problem with the nw package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/install.js
npm ERR! You can get their info via:
npm ERR! npm owner ls nw
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:UsersAdministratornpm-debug.log
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
回复
node -v 看下node是否配置成功
@小米1120 这个成功,node命令运行过一些demo,然后我用 npm install -g nw 报错,如果我下个nw包,可以将文件拖动到nw.exe或者cmd中运行例子,但为什么用npm install nw不管指不指定版本都报错
回复
o 我好像遇到过这个问题,你安装东西有安装错误的 删除重新安装就可以了
@IT路漫漫 我连着10多天,每天都装,然后他就突然成功了
node 配置环境了吗