npm ERR! cb() never called!
An old npm crash during install — usually network/cache corruption.
Seen on:
npm
Meaning
Seen with npm 6 and early 7. Clearing the cache and upgrading npm fixes it.
Common causes
- Corrupted npm cache
- Network interruption
- Old npm version bugs
⚡ Quick fix
- npm cache clean --force
- Upgrade npm: npm install -g npm@latest
- Delete node_modules and lockfile issues, reinstall
Detailed fix by platform
npm
npm cache clean --force && npm install -g npm@latest
How to diagnose
- Version — npm -v
- Recent change — Did it start after a deploy, upgrade, or configuration change? Compare with the last working version.
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
Was this page helpful?
Report a correction or suggest an improvement
Last updated 2 Oct 2026