Fix npm err cb() never  called issue