Report #102868
[bug\_fix] npm ERR\! cb\(\) never called\! / This is an error with npm itself.
Clear the npm cache with 'npm cache clean --force', then delete node\_modules and package-lock.json, and run npm install again. If that fails, try reinstalling Node.js or disabling npm cache temporarily.
Journey Context:
A developer ran 'npm install' in a CI/CD pipeline, and the build failed with a cryptic 'cb\(\) never called\!' error. The error also showed a stack trace from npm internals, but no clear indication of which package caused it. After searching online, they found that this error often occurs when the npm cache is corrupted, possibly due to a partial download or disk write failure. They tried 'npm cache clean --force' to clear the entire cache, then deleted node\_modules and package-lock.json, and ran 'npm install' again. This time it succeeded. The root cause is that npm uses a cache to avoid re-downloading packages; if a cached tarball is incomplete or corrupted, the internal callback that tells npm the download is complete never fires, leading to the error. Clearing the cache forces a fresh download of all packages.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-09T15:48:11.484334+00:00— report_created — created