今天Win上进行的时候遇到一个问题npm install
PhantomJS not found on PATH Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-windows.zip Saving to C:\Users\hezhi\AppData\Local\Temp\phantomjs\phantomjs-2.1.1-windows.zip Receiving... [=---------------------------------------] 2%
这个phantomjs-2.1.1-windows.zip包一直下载不了,原来是天朝的网给墙了。
http://phantomjs.org/download.html 通过这个网址进行下载对应的包
把包放进此路径下(Win)C:\Users\hezhi\AppData\Local\Temp\phantomjs\
解压,然后复制phantomjs所在的路径C:\Users\hezhi\AppData\Local\Temp\phantomjs\phantomjs-2.1.1-windows\phantomjs-2.1.1-windows\bin
再设置环境变量,添加刚才复制的路径。