npm ERR! code EINTEGRITY
d8xvhDKxlrvfhXMi08xhZS1XX/sehNFgOdj4kwYH13RX5UKnj2Fvu/BAMDbxC4jMErhNXQ== sha1-9nVUDRHiilcpzHVBtGHlKIANAmA=. (2071 bytes)
npm ERR! A complete log of this run can be found in:
npm ERR! D:\nodejs\node_cache\_logs\2020-04-03T13_55_13_902Z-debug.log
解决方案:
npm cache verify
或
npm cache clean --force
之后又遇到:
npm ERR! code EINTEGRITY
npm ERR! sha1-F8b22R2owVwncEo+OIM9Z1kqOVk= integrity checksum failed when using sha1: wanted sha1-F8b22R2owVwncEo+OIM9Z1kqOVk= but got sha1-65zsXJnJjAVIDtOI25R7Koa2940=. (5924859 bytes)
解决方案: 先删除node_modules package-lock.json这两个 然后执行
npm cache clean --force
npm install --verbose
最后 nmp install
又遇到
npm ERR! A complete log of this run can be fund in:
npm ERR! C:\Program Files\nodejs\node_cache\_logs\....log
解决方法:
全局更新
npm install npm -g
或者用淘宝镜像命令
cnpm install npm -g