npm install 报错

npm ERR! Linux 3.10.0-514.26.2.el7.x86_64
npm ERR! argv "/opt/node-v6.10.0-linux-x64/bin/node" "/opt/node-v6.10.0-linux-x64/bin/npm" "install"
npm ERR! node v6.10.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! phantomjs-prebuilt@2.1.16 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the phantomjs-prebuilt@2.1.16 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-prebuilt 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-prebuilt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls phantomjs-prebuilt
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /opt/elasticsearch-head-master/npm-debug.log
npm ERR! code 1

 

 

 

 

 

 

执行

 

npm install phantomjs-prebuilt@2.1.16 --ignore-scripts

 

posted @ 2018-03-24 14:06  袁宝东  阅读(2189)  评论(0编辑  收藏  举报