yarn安装依赖时出现错误(2种解决方法)Integrity check failed for “antd“ computed integrity doesn‘t match our records)

在进行  tyarn install  安装相关依赖时,出现报错信息:

(Integrity check failed for "antd" computed integrity doesn't match our records)

解决方法1:

1、清理缓存
yarn cache clean
 
2、安装依赖
命令参考 https://classic.yarnpkg.com/en/docs/cli/install/
 
yarn install 

但重复试了几遍,这种方法都失败了,不起作用。

解决方法2:

$ yarn --update-checksums

这段代码更新了所有完整性校验,然后就可以安装其他软件包并且让项目正常工作。

成功运行:

 


版权声明:本文为weixin_42182676原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。