phantomjs-prebuilt@2.1.14 install: `node install.js`

在用vue-cli构建项目时,npm install 安装包的时候报错了。

错误信息:

npm ERR! Failed at the phantomjs-prebuilt@2.1.14 install script 'node install.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.

 依赖包phantomjs-prebuilt@2.1.14安装失败 跟网络有关系

 

解决方案:

1、搭梯子(vpn)安装(速度奇慢,可能跟我网络有关,半个小时装了这么点)

  

2、下载phantomjs-2.1.1-windows.zip包,放到上图saving to的文件目录里,再次运行npm install 就妥妥的了。

 

posted @ 2017-06-15 11:12  不如自己写博客  阅读(484)  评论(0编辑  收藏  举报