错误内容
npm ERR! code EINTEGRITY
npm ERR! sha1-y480xTIT2JVyP8urkH6UIq28r7E=sha512-I19aIingLgR1fmhftnbWWO3dXc0hSxqHQH8m+K3TnEn/iSeTZZOyvKXWESMwuUVnatlCnZdLBZZt2VSA== integrity checksum failed when using sha1: wanted sha1-y480xTIT2JVy
P8urkH6UIq28r7E=sha512-I19aIingLgR1fmhftnbWWO3dXc0hSxqHQHQbm+K3TnEn/iSeTZZOyvKqQESMwuUVnatlCnZdLBZZt2VSA== but got sha1-y480xTIT2JVyP8urkH6UIq28r7E=. (10171 bytes)
npm ERR! A complete log of this run can be found in:
npm ERR! C:\npm-cache\_logs\2022-07-05T06_39_07_992Z-debug-0.log
本次出现错误的原因是 npm 版本过高导致!
解决方法:
降低npm 的版本
npm install npm@6.14.10 -g