npm install 报错 (npm ERR! code EINTEGRITY)
具体报错信息如下
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)
解决办法
【npm install 报错 (npm ERR! code EINTEGRITY)】1、删除本地的 package-lock.json 文件
2、更新自己的 npm 版本 (npm i -g npm)
3、清空 npm 缓存 (npm cache clean --force | npm cache verif)
4、重新安装 (npm install)
推荐阅读
- Android|Android install 多个设备时指定设备
- oracle|oracle java jdk install
- 接口|axios接口报错-参数类型错误解决
- 用npm发布一个包的教程并编写一个vue的插件发布
- 打开Anaconda|打开Anaconda Navigator 时报错 error 5 拒绝访问
- 运行报错Cannot|运行报错Cannot find module '@babel/compat-data/corejs3-shipped-proposals’
- 故障分析 | MongoDB 5.0 报错 Illegal instruction 解决
- 被mybatis-generator-gui-0.6.1报错坑到的那些事(二)
- weex|weex run ios 报错 /bin/sh: pod: command not found 解决方案
- pyinstaller解决闪退问题