Cli: npm ERR! cb() never called!

Created on 7 Oct 2020  路  17Comments  路  Source: npm/cli

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

Bug Needs Triage Release 6.x

All 17 comments

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

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

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

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

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

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

@detj already did that 馃槕 but still get the same error

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

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

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...

npm cache verify this fixed this problem for me

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

@Shreeyag29 it do be like that sometimes

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.

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

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)

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chrisspen picture chrisspen  路  3Comments

jaydenseric picture jaydenseric  路  3Comments

goldingdamien picture goldingdamien  路  4Comments

Cohen-Carlisle picture Cohen-Carlisle  路  4Comments

dr-js picture dr-js  路  3Comments