yarn error Integrity check failed for ... computed integrity doesn't match our records...

React Native遇到这样的使用yarn install 或者 yarn add 等指令更新或者添加npm包的时候,重复多次报错

 pm config set registry  https://registry.npmmirror.com

如果镜像设置好的话,采用如下的步骤解决

  1. 清理缓存
 yarn cache clean

2.安装依赖

 yarn install --no-lockfile --update-checksums
  1. 如果是iOS端的话,还要链接到Xcode
 cd ios && pod install && cd ..

你可能感兴趣的:(yarn error Integrity check failed for ... computed integrity doesn't match our records...)