原文地址:http://www.2cto.com/kf/201702/599109.html
-
在npm install时总是报如下错误,
尝试单独安装:npm installphantomjs-prebuilt@2.1.14 还是报错
123456789101112131415161718192021Please report
this
full log at https:
//github.com/Medium/phantomjs
npmERR!Darwin
15.0
.
0
npmERR!argv
"/usr/local/bin/node"
"/usr/local/bin/npm"
"install"
npmERR!nodev4.
4.3
npmERR!npmv3.
10.9
npmERR!codeELIFECYCLE
npmERR!phantomjs-prebuilt
@2
.1.
14
install: `node install.js`
npmERR!Exit status
1
npmERR!
npmERR!Failed at the phantomjs-prebuilt
@2
.1.
14
install script 'node install.js
最后通过以下命令安装成功:
1npm install phantomjs-prebuilt
@2
.1.
14
--ignore-scripts
-