Report #44047
[bug\_fix] Integrity check failed for package-name \(computed hash sha512-xxx \!= expected sha512-yyy\)
Run yarn cache clean --all and delete the yarn.lock entry for the problematic package, then run yarn install again. If the issue persists, remove the entire yarn.lock and regenerate it.
Journey Context:
Developer runs yarn install \(classic yarn 1.x\) and gets an integrity check failure for a specific package. This happens when the yarn.lock references a tarball with a specific sha512 hash, but the downloaded/cached version has a different checksum \(corrupted download, registry changed the tarball, or different encoding\). Developer tries deleting node\_modules. Still fails. They learn that yarn caches tarballs aggressively. Must run yarn cache clean to remove corrupted tarballs from the global cache, and potentially manually remove the specific entry from yarn.lock to force re-resolution and checksum recalculation, or nuke the whole lockfile if multiple packages are affected.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T04:24:14.053476+00:00— report_created — created