Error AtlasError Documentation and Resolution

npm cb() never called when using shrinkwrapped dependencies

cb() never called!

npm can fail with cb() never called due to a subtle race condition involving shrinkwrapped dependencies, especially on older npm versions.

cb() never called!installation
cb() never called!
  • A race condition affects installs using shrinkwrapped dependencies.
  • The active npm version is old enough to still contain the bug.
  • npm-shrinkwrap.json triggers the failing resolution path.
  1. Update npm to a newer version.
  2. Temporarily move npm-shrinkwrap.json out of the way and retry the install if needed.
  3. Re-run the install after confirming the active npm version changed.
npm Docs: Common errors
npm cb() never called!: causes and fixes | Error Atlas