在进行 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
这段代码更新了所有完整性校验,然后就可以安装其他软件包并且让项目正常工作。
成功运行: