首页 > 项目中有gruntfile.js和package.json,用npm install进行下载插件,报错

项目中有gruntfile.js和package.json,用npm install进行下载插件,报错

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

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


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


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

]


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

【热门文章】
【热门文章】