npm / cli

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

[BUG] <cb() never called> #2135

Closed Hazc93 closed 3 years ago

Hazc93 commented 4 years ago

Current Behavior:

I am running Windows 10 using npm version 6.14.8 and node version 14.15.0. When I run npx create-react app my-app I get the following error:

npm ERR! cb() never called! npm ERR! This is an error with npm itself. Please report this error at: https://npm.comunity

I have tried running npm i--no-package-lock npm cache clean --force npm cache verify uninstalling and reinstalling node

Expected Behavior:

Expected behaviour is for a create react app called my-app to be made when running npx create-react-app my-app

Steps To Reproduce:

Steps to Reproduce:

Download npm version 14.15.0 using the Windows installer (.msi) 64-bit. using git-bash in VisualStudioCode run npx create-react-app my-app

Environment:

OS: Windows 10 Node: 14.15.0 npm: 6.14.8 editor: VisualStudioCode Terminal: Gitbash

npm_error
soumya232329 commented 4 years ago

Same error

ghost commented 4 years ago

Ok, I manage to solve my probleme by disabling my Antivirus....

soumya232329 commented 4 years ago

@Titoineis still not resolved, I received a new error. May I send you the pic?

soumya232329 commented 4 years ago

Still not resolved, I received a new error. Please do check. Thankyou

On Sat, 7 Nov 2020 at 19:43, Antoine Joublin notifications@github.com wrote:

Ok, I manage to solve my probleme by disabling my Antivirus....

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/npm/cli/issues/2135#issuecomment-723451227, or unsubscribe https://github.com/notifications/unsubscribe-auth/APR7OP2ZGQCXXHG7BSLDKGLSOVIYLANCNFSM4TM6RQUA .

ghost commented 4 years ago

Did you tried that ? https://stackoverflow.com/questions/15393821/npm-err-cb-never-called

alesniak303 commented 4 years ago

Environment: MacBook Air 2020 i5 16GB macOS 10.15.7 npm -v 6.14.4

Steps:

rm -rf node_modules npm install npm ERR! cb() never called!


Subsequent rerun completed without error. I'm including the logs. 2020-11-10T19_05_57_231Z-debug.log

CoderFX commented 4 years ago

same error, windows 10

hmnshgpt455 commented 4 years ago

Same error, Windows 10. npm - 6.14.8

edgardmessias commented 3 years ago

Try edit the environment variable PATH.

A fast test:

set PATH=%APPDATA%\npm;%PATH%
npm install
ghost commented 3 years ago

npm ERR! cb() never called!

Tomato6966 commented 3 years ago

Bot Hey Leute Checkt auf jeden Fall @Tomato ab und seine Coolen Bots

Server : https://discord.gg/3ep6e3vEJf

Website : https://x10-gaming.eu/service/dc

Beenhakker commented 3 years ago

We had the same error, within our TFS v15 pipeline, Windows, NodeJS 14.15.4, NPM 6.

Eventually doing a global install of NPM v7.5 from within our pipeline, adding it to the shell path, and use that version to do the install solved this tedious error.

Arhan13 commented 3 years ago

Try doing - npm cache verify And then run your command, worked for me.

visruth commented 3 years ago

Try doing - npm cache verify And then run your command, worked for me.

it worked for me! Thanks!

george-bobby commented 3 years ago

I had the same error. I updated NPM and node. That solved the problem.