Base solution for your next web application
Open Closed

npm update error cb() never called #5057


User avatar
0
kythor created

Hi, I'm trying to update all the packages in the angular app package.json. I use the command "npm update" but after a while it hangs on "datamaps" and throws this error:

npm ERR! cb() never called!

i also get this

npm WARN tarball tarball data for [email protected] (sha1-0sMepJKyK2qNiHrqFZiaI4/AhK4=) seems to be corrupted. Trying one more time.

any idea's? I'm unable to install any npm packages because of this. I have installed latest node.js and updated npm itself


3 Answer(s)
  • User Avatar
    0
    aaron created
    Support Team

    Try yarn.

  • User Avatar
    0
    kythor created

    now i get this error when doing "yarn upgrade"

    pm-esprima-fb-3001.1.0-dev-harmony-fb-b77d37abcd38ea0b77426bb8bc2922ce6b426411" as pattern ["esprima-fb@~3001.1.0-dev-harmony-fb"]. This could result in non-deterministic behavior, skipping.
    info [email protected]: The platform "win32" is incompatible with this module.
    info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
    error [email protected]: The engine "node" is incompatible with this module. Expected version ">=4 <=9".
    error An unexpected error occurred: "Found incompatible module".
    
  • User Avatar
    0
    aaron created
    Support Team

    Remove node_modules folder and try yarn again.