npm install nw -g 报错

发布于 2021-11-25 16:37:52 字数 1042 浏览 791 评论 5

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

奢望 2021-12-01 15:01:24

回复
node -v 看下node是否配置成功

奢望 2021-12-01 14:31:39

@小米1120 这个成功,node命令运行过一些demo,然后我用 npm install -g nw 报错,如果我下个nw包,可以将文件拖动到nw.exe或者cmd中运行例子,但为什么用npm install nw不管指不指定版本都报错

2021-12-01 12:16:56

回复
o 我好像遇到过这个问题,你安装东西有安装错误的 删除重新安装就可以了

凡尘雨 2021-12-01 09:51:52

@IT路漫漫 我连着10多天,每天都装,然后他就突然成功了

醉生梦死 2021-11-27 21:31:51

node 配置环境了吗

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文