javascript - 项目中有gruntfile.js和package.json,用npm install进行下载插件,报错
怪我咯
怪我咯 2017-04-11 10:11:46
[JavaScript讨论组]
pm ERR! Darwin 15.2.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v5.10.1
npm ERR! npm  v3.8.3
npm ERR! code ELIFECYCLE

npm ERR! phantomjs@1.9.15 install: `node install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the phantomjs@1.9.15 install script 'node install.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the phantomjs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs phantomjs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls phantomjs
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/mac/Downloads/origin-master/assets/npm-debug.log
怪我咯
怪我咯

走同样的路,发现不同的人生

全部回复(4)
高洛峰

好像是没有phantomjs@1.9.15 这个模块了
你可以单独安装一下这个模块试试,npm install phantomjs --save-dev

]

怪我咯

1、可以不指定模块版本,单独安装
2、用cnpm镜像比较好,npm容易被墙

ringa_lee

谢谢大家的回答 我的问题单独安装已经成功了

高洛峰

当前目录中包括package.json和Gruntfile.js两个文件,执行grunt命令,系统报错了,提示不能加载本地库

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

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