isaacs/npm — Issue #1602: "cb() never called!" error sporadicly
Author: ssoria
Created: 2011-10-26 06:38:46+00:00
State: open

Seeing the error sporadically. Root caused to a case of variable being used before initialized. Specifically variable i in loadPrefix of npm.js:333. In some rare cases, the calls to findPrefix->cb->mkdir->next were happening synchronously, which meant by the time next was called, i was still undefined. Pull request containing the fix will be linked shortly.