npm install nw -g 报错

goldenMoon 发布于 2016/05/16 07:57
阅读 1K+
收藏 0
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:\Users\Administrator\npm-debug.log
加载中
0
小米1120
小米1120
node 配置环境了吗
goldenMoon
goldenMoon
@IT路漫漫 我连着10多天,每天都装,然后他就突然成功了
小米1120
小米1120
回复 @IT路漫漫 : o 我好像遇到过这个问题,你安装东西有安装错误的 删除重新安装就可以了
goldenMoon
goldenMoon
@小米1120 这个成功,node命令运行过一些demo,然后我用 npm install -g nw 报错,如果我下个nw包,可以将文件拖动到nw.exe或者cmd中运行例子,但为什么用npm install nw不管指不指定版本都报错
小米1120
小米1120
回复 @IT路漫漫 : node -v 看下node是否配置成功
goldenMoon
goldenMoon
...新手,求指导,谢谢
返回顶部
顶部