前端npm install 报错
error:
npm notice
npm notice New minor version of npm available! 7.20.3 -> 7.23.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v7.23.0
npm notice Run npm install -g npm@7.23.0 to update!
npm notice
npm ERR! code 1
npm ERR! path D:\Project_liu\video.js-7.10.2\node_modules\phantomjs-prebuilt
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node install.js
npm ERR! PhantomJS not found on PATH
npm ERR! Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-windows.zip
npm ERR! Saving to C:\Users\SA'D'S~1\AppData\Local\Temp\phantomjs\phantomjs-2.1.1-windows.zip
npm ERR! Receiving...
npm ERR! Error making request.
npm ERR! Error: read ECONNRESET
npm ERR! at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
npm ERR!
npm ERR! Please report this full log at https://github.com/Medium/phantomjs
npm ERR! A complete log of this run can be found in:
npm ERR! D:\Program Files\nodejs\node_cache\_logs\2021-09-15T09_24_15_770Z-debug.log
npm ERR! PhantomJS not found on PATH
解决:
单独安装
npm install phantomjs@2.1.1