cli icon indicating copy to clipboard operation
cli copied to clipboard

[BUG] <title>npm ERR! cb() never called! while creating a new react app.

Open kaartik2611 opened this issue 5 years ago • 5 comments

Is there an existing issue for this?

  • [ ] I have searched the existing issues

Current Behavior

I can the followng commands: npm init npm i create-react-app npx create-react-app test This gives the following error :

npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://npm.community>

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\acer\AppData\Roaming\npm-cache\_logs\2021-06-12T12_00_31_951Z-debug.log

I also tried: 1)I uninstalled create-react-app from global 2)I tried npm cache clean --force

Expected Behavior

No response

Steps To Reproduce

  1. In this environment...
  2. With this config...
  3. Run '...'
  4. See error...

Environment

  • OS: Windows 10, 64bit
  • Node: 14.17.0
  • npm: 6.14.13

kaartik2611 avatar Jun 12 '21 12:06 kaartik2611

I have the same issue for a week. Could you find a solution?

busrakaraa avatar Jun 14 '21 20:06 busrakaraa

@kaartik2611 @busrakaraa does this happen on npm 7?

ljharb avatar Jun 14 '21 21:06 ljharb

@kaartik2611 @busrakaraa does this happen on npm 7?

yeah. The same error

C:\Users\acer\reactjs>npm -v
7.18.1

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://github.com/npm/cli/issues>

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\acer\AppData\Local\npm-cache\_logs\2021-06-19T06_12_52_002Z-debug.log

kaartik2611 avatar Jun 19 '21 06:06 kaartik2611

npm v7.20.0 added some things that should catch more of these network errors. It also added some new debugging messages specifically for this error message. Can you try with that version and also include any debug logs it generates?

wraithgar avatar Jul 15 '21 21:07 wraithgar

Closing: We suspect this has to do with a combination of resource constraints within the device/program being used and the large amount of transient dependencies being installed by this command.

We've opened https://github.com/npm/statusboard/issues/395 for us to look deeper into this and track the discussion and fixes around it. You can also read this document for more information on why this issue might be happening currently and ways to debug it.

lukekarrys avatar Sep 28 '21 19:09 lukekarrys