npm / cli

the package manager for JavaScript
https://docs.npmjs.com/cli/
Other
8.36k stars 3.09k forks source link

npm ERR! cb() never called! #1916

Closed lewsea closed 3 years ago

lewsea commented 3 years ago

I want to install create-react-app but bump along with this bug, i have tried many solutions/articles and in stack overflow like, cache verify, cache cleaning, and many stuffs but still making this error, any help for this problem ?

ScreenShot_20201007184846

2020-10-07T11_11_07_015Z-debug.log

node -v v12.19.0

npm -v 6.14.8

mohemos commented 3 years ago

I also encountered the same error on: Node v14 and v12 alpine on docker NPM v6.14.8

crakton commented 3 years ago

I have similar issue while trying to use create-react-app. node v14.13.1 npm v6.14.8

is there a possible fix for this error. npm error create-react-app

gengjiawen commented 3 years ago

Also in 7.0.0-rc.3 see https://github.com/nodejs/node-addon-examples/runs/1233932860. Can reproduce 100%

detj commented 3 years ago

Can confirm that this worked for following environment.

Commands executed

$ mkdir cra-try
$ cd cra-try
$ npx create-react-app .

Environment details

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"

$ npx --version
7.0.0-rc.3

$ node --version
v12.19.0
lewsea commented 3 years ago

man i just wanted to code and have a job..... now my computer is broken because of this problem ,probably because of all the things ive done/downloaded etc. lol

detj commented 3 years ago

@lewsea try removing node & npm completely and re-install. see if that fixes the issue.

lewsea commented 3 years ago

@detj already did that đŸ˜‘ but still get the same error

ljharb commented 3 years ago

@lewsea can you try npm install -g npm@next-7 and see if that works?

OksXen commented 3 years ago

Same here. Trying to run this command: c:\ npm adduser --registry https://pkg.domain.io

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\UserName\AppData\Roaming\npm-cache\_logs\2020-10-14T13_54_09_249Z-debug.log

npm -v : 6.14.8 node -v: v14.5.0

prKassad commented 3 years ago

Sometimes I see the same error on Win10 / Node14.13.1 / Npm7. I was deleting all cache, reinstalling nodejs and npm, but error is still there. It may be related to an unstable network connection...

kaznovac commented 3 years ago

npm cache verify this fixed this problem for me

shreeyaBuilds commented 3 years ago

the same issue tried all above all solutions but still same error

lewsea commented 3 years ago

@Shreeyag29 it do be like that sometimes

Indieaiden commented 3 years ago

Same error here trying to install some pre-edited bootswatch theme to work with. 2020-10-27T15_13_22_122Z-debug.log

That's the log, also made a cache verify and such. Still not working.

sandeepdussa commented 3 years ago

Node v14.14.0 NPM 6.14.8 Windows 10 machine

Facing this error when running the command 'npm outdated'

npm ERR! cb() never called!

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

kaznovac commented 3 years ago

ignore my previous comment about npm cache verify, i just got lucky while installing (1600-1700 packages)

this seems to have something with network state and/or network tools (bunch of errors while trying yarn install might be a hint); i've disabled little snitch and adguard also switched to cell hotspot, and installation worked (don't have time to experiment further, deadline is tomorrow xD)

lewsea commented 3 years ago

@kaznovac yeah i think it has something to do with network/firewalls and antivirus software, good thing it worked for you

mrpickles3rd commented 3 years ago

I had the same issue when I was connected to a slow VPN, 4 or 5 time it errored. Disconnecting from it and having a good network connection fixed it for me.

indietato commented 3 years ago

Hi guys, I had the same issue and I finally found the problem, the problem is the antivirus, I disabled it that worked.

GourabSanyal commented 3 years ago

Faced the same error. Was stuck with it for a long time.

My os is windows 10 pro.

This is how I got out of it :

  1. Clear all the npm-cache first, and install the latest version of Node.
  2. Uninstall the create-react-app globally using npm uninstall -g create-react-app in the Node terminal.
  3. then runnpx create-react-app <app name>

I don't know why but the last two methods worked only when I deleted the logs first.

Hope this works for you.

edgmic commented 2 years ago

I built my apps with Docker Compose, and each Nodejs service ended with an error: "npm error cb() never called!". I have tried everything: cache cleaning, reinstall, etc. The interesting thing is that everything works on my Macbook. So, I thought it must be something with a network or Windows. So, I decided to go via VPN, and it worked. I don't know the exact problem it solves, but this thing worked for me.

lewsea commented 2 years ago

man every time there's a new comment here, it brings back the nightmare this problem has caused.

EliasMwita commented 2 years ago

no answer at all

EliasMwita commented 2 years ago

i face the same error when i want to create the my application

EliasMwita commented 2 years ago

ERROR in /js/app Module not found: Error: Can't resolve 'C:\Users\ELIAS MWITA NSONGO\Desktop\projects\laravel-studying\resources\scss\app.css' in 'C:\Users\ELIAS MWITA NSONGO\Desktop\projects\laravel-studying'

webpack compiled with 1 error

Sapnajha19 commented 1 year ago

@alexcruztech Hey can you tell me how to disable it?

indietato commented 1 year ago

@Sapnajha19 Hey sorry for the late answer, I think I was using Avast, so I just uninstalled and that works for me.

TujinLee commented 11 months ago

There is a high probability that there has some packages incompatible with nodejs or npm version。I solved this problem when I use yarn and yarn told me more details about the incompatible version.Finally I use nvm to manage the node version and npm install successfully