-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yarn install fails with "Incorrect integrity when fetching from the cache" #7589
Comments
The code at |
I just ran into this today too. No idea how to fix it. I've tried: yarn cache clean
rm -rf $(yarn cache dir)
yarn install --no-cache
yarn install --no-cache --network-concurrency 1 |
In case anyone was wondering how to rollback to brew unlink yarn
brew install https://raw.githubusercontent.com/dotiful/homebrew-core/2815d3ce3ea17202979f062bbcae78c96ebc0723/Formula/yarn.rb
brew switch yarn 1.17.3 |
Also tried all of the above - and for some projects it works.
|
You can follow the steps in #7584 (comment):
There is a partial fix in the latest nightly build of yarn but there are still lingering issues so I'd follow #7584 for further updates. |
Closing to keep a single thread 🙂 : #7584 (comment) |
Since upgrading to Yarn v1.19.0 we started getting the following error on
yarn install
phase:We have lots of repos, each with their own package.json and respective yarn.lock file and I've noticed (checking the yarn cache folder) that we have three different versions of
browserslist
being used:For some reason
npm-browserslist-4.6.6-6e4bf467cde520bc9dbdf3747dafa03531cec453
does not have theintegrity
field in its.yarn-metadata.json
file which I guess causes yarn to fail when checking the cache integrity.Here's also the
.yarn-metadata.json
contents:Any idea who's generating these integrity fields and when, and why the two versions of this package (
npm-browserslist-4.6.3-0530cbc6ab0c1f3fc8c819c72377ba55cf647f05
andnpm-browserslist-4.7.0-9ee89225ffc07db03409f2fee524dc8227458a17
) have it while the middle version (npm-browserslist-4.6.6-6e4bf467cde520bc9dbdf3747dafa03531cec453
) does not?This made all of our Jenkins builds to fail since the 1.19.0 update.
To get it working we had to revert to 1.18.0.
The text was updated successfully, but these errors were encountered: