phantomjs-prebuilt: Running install script, failed in 32s

phantomjs-prebuilt: Running install script, failed in 32s
node_modules/.pnpm/[email protected]/node_modules/phantomjs-prebuilt: Running install script, failed in 32s
…/node_modules/phantomjs-prebuilt install$ node install.js
│ 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\Administrator\AppData\Local\Temp\phantomjs\phantomjs-2.1.1-windows.zip
│ Receiving…
│ at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
│ Please report this full log at https://github.com/Medium/phantomjs
└─ Failed in 32s at D:\phpstudy_pro\WWW\qp\video_client\node_modules.pnpm\[email protected]\node_modules\phantomjs-prebuilt
 ELIFECYCLE  Command failed with exit code 1

解决方案(求点赞):

直接下载
https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-windows.zip
存在
C:\Users\Administrator\AppData\Local\Temp\phantomjs\phantomjs-2.1.1-windows.zip
重新执行命令
即可
github上不去?windows store 安装 Watt Toolkit 加速即可。

你可能感兴趣的:(npm,pnpm,phantomjs,prebuilt)