Fixed undefined pointer exception at parsePackage, moved error checking before checking res.status
Fixed undefined pointer exception at parsePackage, moved error checking before checking res.status

jesseditson/npm-package