NPM报错

问题一:When I run npm install, it returns with ERR! code EINTEGRITY (npm 5.3.0)

解决方案:

1.npm cache clean --force
OR
Deleting npm and npm-cache folders in Users%username%\AppData\Roaming (windows 7) and running npm install
OR
Update npm by via npm i -g npm
OR
Delete package-lock.json
OR
npm cache verify
OR
npm cache clean
OR
Do these steps to fix the problem:
Find all outdated packages and update theme:
npm outdated -g
sudo npm i -g outDatedPKG
Upgrade npm to latest version with:
sudo npm i -g npm
Delete package-lock.json file.
Delete _cacache directory in ~/.npm: npm cache verify
Every time I get that error, do steps 2 & 3.
If you still get the error, clear npm's cache:
npm cache clean --force
OR
Add proxy to .npmrc in ~ directory:
proxy=http://localhost:8123
https-proxy=http://localhost:8123
Try again! slow internet connection and censorship may cause this ugly problem.
OR
npm cache clear --force && npm install --no-shrinkwrap --update-binary
OR
npm config set package-lock false
参考链接:https://stackoverflow.com/questions/47545940/when-i-run-npm-install-it-returns-with-err-code-eintegrity-npm-5-3-0

2.如果以上方法还不能解决问题那么,兄弟,你的npm该升级了

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容