关于npm:npm-install-报错-npm-ERR-code-EINTEGRITY

13次阅读

共计 384 个字符,预计需要花费 1 分钟才能阅读完成。

具体报错信息如下

npm ERR! code EINTEGRITY
npm ERR! Verification failed while extracting @my-package@^1.2.0:
npm ERR! Verification failed while extracting @my-package@^1.2.0:
npm ERR! sha512-lQ...HA== integrity checksum failed when using sha512: wanted sha512-lQ...HA== but got sha512-nH...ow==. (4835509 bytes)

解决办法

1、删除本地的 package-lock.json 文件
2、更新本人的 npm 版本(npm i -g npm)
3、清空 npm 缓存(npm cache clean –force | npm cache verif)
4、重新安装(npm install)

正文完
 0