How to fix "Incorrect integrity when fetching from the cache" error when using yarn

Photo by Bruno Thethe on Unsplash

I've found this happens sometimes if I manually change the package config.

It's a simple fix. You have to clean the cache.

yarn cache clean
yarn install

And that's it!