Skip to content

[BUG] cb() never called! for install -g eslint #596

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

Closed
versat opened this issue Dec 16, 2019 · 4 comments
Closed

[BUG] cb() never called! for install -g eslint #596

versat opened this issue Dec 16, 2019 · 4 comments
Labels
Bug thing that needs fixing

Comments

@versat
Copy link

versat commented Dec 16, 2019

What / Why

npm ERR! cb() never called! every time I try to install -g eslint

When

Everytime I try to install eslint via:
sudo npm install -g eslint

Where

$ npm -v
6.13.4
$ uname -a
Linux debian10 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64 GNU/Linux

How

Current Behavior

Installing eslintalways crashes with an error like this:

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!     /root/.npm/_logs/2019-12-16T12_34_57_744Z-debug.log

I have tried npm cache clean --force but that did not help.

Steps to Reproduce

Update npm to latest and install eslint:

ms@debian10:~$ sudo npm install -g npm@latest
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
/usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js
+ npm@6.13.4
updated 1 package in 6.632s
ms@debian10:~$ sudo npm install -g eslint
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!     /root/.npm/_logs/2019-12-16T12_34_57_744Z-debug.log

Expected Behavior

The package should be installed successfully

Who

  • n/a

References

Collection of similar issues in ticket #417

@versat
Copy link
Author

versat commented Dec 16, 2019

Example log file of failure:
npm_cb_never_called_log.txt

@versat
Copy link
Author

versat commented Dec 16, 2019

I have the same issue under Windows 7 with npm 6.12.1 (that came with node.js installation) and 6.13.4 (updated npm).
Clearing the cache does not help and npm cache verify says there is no problem.

@versat
Copy link
Author

versat commented Dec 19, 2019

It works better with npm 6.7.0. At least under Linux I was able to install eslint 🎉
Under Windows the cb() issue does not happen but it simply hangs forever at some point during installation :(

@mikemimik
Copy link
Contributor

Duplicate issue; aggregating into #417.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing
Projects
None yet
Development

No branches or pull requests

2 participants