Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm ERR! cb() never called! #1916

Closed
lewsea opened this issue Oct 7, 2020 · 28 comments
Closed

npm ERR! cb() never called! #1916

lewsea opened this issue Oct 7, 2020 · 28 comments
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 6.x work is associated with a specific npm 6 release

Comments

@lewsea
Copy link

lewsea commented Oct 7, 2020

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

@lewsea lewsea added Bug thing that needs fixing Needs Triage needs review for next steps Release 6.x work is associated with a specific npm 6 release labels Oct 7, 2020
@mohemos
Copy link

mohemos commented Oct 9, 2020

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

@crakton
Copy link

crakton commented Oct 9, 2020

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
Copy link

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

@detj
Copy link

detj commented Oct 10, 2020

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
Copy link
Author

lewsea commented Oct 12, 2020

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
Copy link

detj commented Oct 13, 2020

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

@lewsea
Copy link
Author

lewsea commented Oct 13, 2020

@detj already did that 😑 but still get the same error

@ljharb
Copy link
Collaborator

ljharb commented Oct 13, 2020

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

@OksXen
Copy link

OksXen commented Oct 14, 2020

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
Copy link

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
Copy link

npm cache verify this fixed this problem for me

@shreeyaBuilds
Copy link

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

@lewsea
Copy link
Author

lewsea commented Oct 27, 2020

@Shreeyag29 it do be like that sometimes

@Indieaiden
Copy link

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
Copy link

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
Copy link

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
Copy link
Author

lewsea commented Oct 28, 2020

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

@mrpickles3rd
Copy link

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.

@lewsea lewsea closed this as completed Dec 13, 2020
@alexcruztech
Copy link

alexcruztech commented Mar 25, 2021

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

@GourabSanyal
Copy link

GourabSanyal commented May 6, 2021

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 run npx 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
Copy link

edgmic commented Sep 28, 2021

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
Copy link
Author

lewsea commented Sep 28, 2021

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

@EliasMwita
Copy link

no answer at all

@EliasMwita
Copy link

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

@EliasMwita
Copy link

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
Copy link

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

@alexcruztech
Copy link

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

@TujinLee
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 6.x work is associated with a specific npm 6 release
Projects
None yet
Development

No branches or pull requests