cli icon indicating copy to clipboard operation
cli copied to clipboard

[BUG] <npm ERR! cb() never called!> v6

Open busrakaraa opened this issue 5 years ago • 6 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

Hello,

I had this error first when I create new React app. I tried every suggested solution for this problem, including upgrading npm but even when I try to update my npm, it gives the same problem again.

NOTE: Please don't redirect me to https://github.com/npm/cli/issues/417, it also didn't work.

Expected Behavior

No response

Steps To Reproduce

  1. In this environment : VS Code Terminal or node.js command promp
  2. With this config...
  3. Run : npm i -g npm@latest, or upgrade commands
  4. See error...

Environment

  • OS:
  • Node: 14.17.0
  • npm: 6.14.13

busrakaraa avatar Jun 17 '21 08:06 busrakaraa

I had the same problem, with the same exact version. I just ran npm i again after reinstalling npm and it worked

macedonga avatar Jun 17 '21 09:06 macedonga

I had the same problem, with the same exact version. I just ran npm i again after reinstalling npm and it worked

Unfortunately, I tried it but got the same problem again.

image

busrakaraa avatar Jun 17 '21 09:06 busrakaraa

Weird... (you forgot to hide your username before npm i btw)

macedonga avatar Jun 17 '21 09:06 macedonga

  1. Uninstall your node.js, & take backup of NPM folder & delete from C:\Users<YOUR_NAME>\AppData\Roaming > NPM
  2. uninstall windows development kit (IF have) from the control panel
  3. clean your computer junks USING Cleaner(free version) https://www.ccleaner.com/ccleaner/download
  4. restart your PC.
  5. Reinstall Node js & angural CLI
  6. then create a new App from the command prompt

Then Your Problem should be fixed (:

image

anoopkumarseth avatar Jun 17 '21 10:06 anoopkumarseth

Mine was a problem with the network connectivity. After I have checked it is now working.

allan-1 avatar Jun 17 '21 15:06 allan-1

@busrakaraa Is this a problem you're able to consistently reproduce? Are you working with any peers that are running into the same problem for the same project? Are you able to provide your project's package.json &/or package-lock.json & more information about your OS/environment? Unfortunately, we aren't triaging v6 bugs anymore so our current hope is that updating to npm@7 will help resolve many of these types of issues for folks. If not, & you're able to reproduce this problem on v7, we'd ask you to please file a new issue with some more context.

We are aware that this error is thrown for a number of reasons so it can be hard to trace. If you're having problems upgrading to the latest npm (ref. https://github.com/npm/cli#installation), you can also try updating to the latest Node version, v16.x, which ships with npm@7

darcyclarke avatar Jun 17 '21 18:06 darcyclarke