Report #24410
[bug\_fix] EINTEGRITY integrity checksum failed
Run npm cache clean --force, delete package-lock.json, and run npm install again. Root cause: Corrupted npm cache or lockfile containing mismatched checksums for tarballs.
Journey Context:
Developer switches git branches or merges a branch with conflicting package-lock.json changes. Runs npm ci or npm install. Gets "EINTEGRITY: sha512-... integrity checksum failed when using sha512: wanted sha512-abc... but got sha512-xyz...". The error indicates the downloaded tarball's hash doesn't match the hash recorded in package-lock.json. Developer tries npm install again, same error. Suspects network corruption, tries different network, same error. Realizes the lockfile has stale or cross-platform corrupted integrity hashes \(sometimes happens when lockfile generated on Windows with different line endings or merged badly\). Checks npm cache and finds corrupted tarballs. Runs npm cache clean --force to purge all cached packages. Then deletes package-lock.json to force npm to resolve fresh metadata from registry. Runs npm install - npm fetches clean tarballs, calculates new integrity hashes, generates a fresh lockfile, and installation succeeds without checksum mismatches.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T19:22:40.881837+00:00— report_created — created