Yarn 1.0.2: Fetch succeeded for undefined. However, extracting hash X did not match requested hash Y

error https://github.com/expo/react-native/archive/sdk-20.0.0.tar.gz: Fetch succeeded for undefined. However, extracting “https://github.com/expo/react-native/archive/sdk-20.0.0.tar.gz” resulted in hash “bde7e70913e017f79afe188970adbed8c00b3858”, which did not match the requested hash “804b58150426c68e4da266490d43ec639d95953d”.

I had the same problem after starting a new repo in a new computer. Following the very own @peterpme tips at slack solved the issue.

Just do:

  1. rm -rf node_modules
  2. watchman watch-del-all
  3. rm -rf $TMPDIR/react-*
  4. upgrade yarn
  5. rm -rf yarn.lock
  6. yarn
  7. exp start -c
1 Like

Didn’t work for me.
Having this issue on my CI

Could likely be a network fetch error. Try doing this again and seeing if the problem persists.

yarn upgrade worked for me (I also removed node_modules prior)