Report #100072
[bug\_fix] npm ERR\! cb\(\) never called\! — install hangs or crashes without finishing
Clear the corrupted npm cache with \`npm cache clean --force\`, delete \`node\_modules\` and \`package-lock.json\`, and run \`npm install\` again. If it persists, ensure you are on a supported Node/npm combination and check disk space/network stability. The error means npm's internal callback queue got out of sync, usually due to a partially written cache entry or interrupted install.
Journey Context:
You cancel an \`npm install\` with Ctrl-C because it seems stuck. The next install fails with \`npm ERR\! cb\(\) never called\!\` and a stack trace inside \`pacote\` or \`make-fetch-happen\`. You try \`rm -rf node\_modules\` and reinstall, but it still fails. You inspect \`~/.npm/\_cacache\` and find zero-byte or half-downloaded tarballs. npm's caching layer is content-addressed; a corrupted tarball satisfies the index but fails extraction, leaving the install in an inconsistent state where callbacks never resolve. \`npm cache clean --force\` wipes the cache, forcing a fresh download, and the install completes.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-01T04:36:45.245176+00:00— report_created — created