开发者社区> 问答> 正文

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:\Users\Administrator\npm-debug.log

展开
收起
爱吃鱼的程序员 2020-06-09 14:34:14 1033 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    node配置环境了吗
    <atarget='_blank'>@IT路漫漫我连着10多天,每天都装,然后他就突然成功了回复<aclass='referer'target='_blank'>@IT路漫漫:o我好像遇到过这个问题,你安装东西有安装错误的删除重新安装就可以了<atarget='_blank'>@小米1120这个成功,node命令运行过一些demo,然后我用npminstall-gnw报错,如果我下个nw包,可以将文件拖动到nw.exe或者cmd中运行例子,但为什么用npminstallnw不管指不指定版本都报错回复<aclass='referer'target='_blank'>@IT路漫漫:node-v看下node是否配置成功...新手,求指导,谢谢

    2020-06-09 14:34:30
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
基于webpack和npm的前端组件化实践 立即下载
基于FAAS构建NPM同步CDN 立即下载
低代码开发师(初级)实战教程 立即下载

相关镜像