npm ERR! integrity checksum failed when using sha512: wanted xxxx but got yyyy
问题现象: npm ERR! integrity checksum failed when using sha512: wanted xxxx but got yyyy
可能原因:
1. npm安装的依赖同一个版本,作者提交了多次,导致npm包的唯一识别码不一致
解决方法:
方法一: 删除package-lock.json后重新npm i
方法二:复制but got 后面的识别码(yyyy),替换package-lock.json中 but got前的识别码(xxxx)