npm error : cb() never called, what should I do?

After spending hours on many recommendations that did not work. I finally got npx create-react-app running by doing the following:

  1. Uninstall npm by running the following code at your command prompt:

    npm uninstall -g create-react-app
  2. Increase timeout by changing/adding this line in your .npmrc file:


    Your .npmrc file can be found in C:\Program Files\nodejs\node_modules\npm (windows)

    Then RESTART your PC

  3. Disable your antivirus (as @Antoine said)

  4. Run the following at the command prompt

    npm clean cache --force
    npm install create-react-app
    npx create-react-app my-app

    where my-app is the name of your project

NOTE: I am not using any proxy.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top