欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

yarn computed integrity doesn‘t match our records 错误

程序员文章站 2022-04-28 18:54:17
...

yarn 安装依赖时出现的错误

error Incorrect integrity when fetching from the cache for "xxxxxx". 
Cache has "sha512-95rVk6HKnBTDr/CWQf4LwHeXn/UqN8FcKDOtClkZ0E3ajiarujRDDx3ejH38TUkBewO55Q31ULGdRzW2cQzMKw== sha1-+4bAQUR5PTMHSjyCk9KMw8UQuY4=" 
and remote has "sha512-bXpDY0k2hi6Fr+0iwhBxgOXEuOe5zsRUeIgejK1dIQfUfxywlYxtXfH1SMjaUlMfbN/2UgNoRO6guLH4VaxyBg==". 
Run `yarn cache clean` to fix the problem

解决方案

yarn cache clean
yarn --update-checksums
yarn install