PhantomJS not found on PATH

使用vue-cli创建项目后,npm init常出现以下问题:PhantomJS not found on PATH

这是因为文件phantomjs-2.1.1-windows.zip过大,网络不好容易下载失败。

可以使用cnpm安装,这样速度会快一些

cnpm的安装方法:

npm install -g cnpm --registry=https://registry.npm.taobao.org

原文地址:https://www.cnblogs.com/aoping/p/6674712.html