1.提示找不到PhantomJS需要进行下载,如果网速允许的话可以直接
npm install -g phantomjs
如果网速不给力的话,那就先进行淘宝镜像安装
npm install -g cnpm --registry=https://registry.npm.taobao.org
2.再用cnpm进行下载
cnpm install -g phantomjs
1.提示找不到PhantomJS需要进行下载,如果网速允许的话可以直接
npm install -g phantomjs
如果网速不给力的话,那就先进行淘宝镜像安装
npm install -g cnpm --registry=https://registry.npm.taobao.org
2.再用cnpm进行下载
cnpm install -g phantomjs
转载于:https://www.cnblogs.com/bing0709/p/10315685.html