node.js - npm install项目出错,哪位遇到过,怎么解决?
ringa_lee
ringa_lee 2017-04-17 13:30:25
[Node.js讨论组]

108629 error Windows_NT 10.0.10586
108630 error argv "D:\\Program Files\\nodejs\\node.exe" "D:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
108631 error node v5.6.0
108632 error npm v3.6.0
108633 error code ELIFECYCLE
108634 error phantomjs@1.9.19 install: node install.js
108634 error Exit status 1
108635 error Failed at the phantomjs@1.9.19 install script 'node install.js'.
108635 error Make sure you have the latest version of node.js and npm installed.
108635 error If you do, this is most likely a problem with the phantomjs package,
108635 error not with npm itself.
108635 error Tell the author that this fails on your system:
108635 error node install.js
108635 error You can get information on how to open an issue for this project with:
108635 error npm bugs phantomjs
108635 error Or if that isn't available, you can get their info via:
108635 error npm owner ls phantomjs
108635 error There is likely additional logging output above.
108636 verbose exit [ 1, true ]

ringa_lee
ringa_lee

ringa_lee

全部回复(2)
PHP中文网

删除npmrc文件,使用镜像

npm iconfig set registry http://registry.cnpmjs.org
npm info underscore
PHP中文网

执行下这个命令,然后再试试

npm config set unsafe-perm true
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号