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)

    推荐阅读