npm install安装依赖出现PhantomJS not found on PATH PhantomJS not found on PATH Downloading https://github

问题:PhantomJS not found on PATH

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\ADMINI~1\AppData\Local\Temp\phantomjs\phantomjs-2.1.1-windows.zip

Receiving...

解决

按照错误信息的指示,去 

https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-windows.zip

吧指定的安装包下载下来,然后吧下载的文件放到

C:\Users\ADMINI~1\AppData\Local\Temp\phantomjs\phantomjs-2.1.1-windows.zip

然后在执行

npm i --verbose

问题就解决了

原因

出现这中情况是或许因为文件phantomjs-2.1.1-windows.zip过大,同时网络不是特别好的原因导致文件下载失败

猜你喜欢

转载自blog.csdn.net/caseywei/article/details/83071203