npm ERR! fatal: early EOF
npm ERR! fatal: index-pack failed
报错:
npm ERR! code 128
npm ERR! Command failed: git clone --mirror -q git://github.com/adobe-webplatform/eve.git C:\Users\Administrator\AppData\Roaming\npm-cache_cacache\tmp\git-clone-797862b9.git --config core.longpaths=truenpm ERR! warning: templates not found in C:\Users\ADMINI~1\AppData\Local\Temp\pacote-git-template-tmp\git-clone-1a4f4511
npm ERR! fatal: unable to access ‘https://github.com/adobe-webplatform/eve.git/’: OpenSSL SSL_read: Connection was reset, errno 10054
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2022-06-27T22_54_17_376Z-debug.log
网上搜索问题是因为Node环境从8到10后才出现这种情况,解决办法是执行
删除pakage-lock.json .github文件夹 node_modules文件夹
重新 npm install
npm rebuild node-sass
如果这样报错失败的话,再执行:
npm uninstall -s node-sass
npm install -s node-sass
就是直接删除node-sass包后再重新install
对于一些老项目的话可能有些包的依赖版本发生变化,可以执行下面代码修复一下。
`npm audit fix