-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
🐞 [BUG] "npm ERR! cb() never called!" or "Exit handler never called" #417
Comments
thanks @DanielRuf for linking all those ❤️ |
I guess we can check which version first introduced this (doing a small |
Following versions were mentioned in the issues: 6.4.1 Now trying to get a reproducible testcase. |
Relevant changes in the past tolog this error: npm/npm#15716 |
Tests with a local npm 6.13.1 (on macOS):
So far it looks like this is caused by other errors which cancel the CLI too early. I remember that we had this bug also on Ubuntu with the latest version and some packages. |
I'm experiencing the same error trying to install a company project for development. Using NVM to switch instances of node/npm project was generated with Angular CLI version 8.3.21 [NVM for Windows Setup, Ecor Ventures LLC, Tuesday, August 7, 2018 9:46:31 PM] |
(note that must be nvm-windows; actual nvm doesn't work on non-WSL Windows, and doesn't distinguish 64-bit) |
We're getting this error intermittently in both local development and in our CI system. Happy to add any additional logging that might help. Attached the npm log from a run that just happened on my laptop on my mac -- trying to npm install one of our private packages. Immediately re-running the command worked without issue.
❯ npm -v Let me know if there's anything I can do to help track this down, would like to kill the issue. |
Actions Triggered:
Thoughts as triaging:
|
I got same error. and FIXED IT. Tried Steps:
My problem: My problem was at TCP level. My Solution: docker build -t tag myproject --add-host registry.npmjs.org:nginxip . (redirect all npm install trafic to your nginx) below is the sample K8 ingress apiVersion: v1
kind: Namespace
metadata:
name: gitlab
labels:
app.kubernetes.io/name: gitlab
app.kubernetes.io/part-of: gitlab
---
apiVersion: v1
kind: Service
metadata:
name: npm-service
namespace: gitlab
spec:
externalName: registry.npmjs.org
type: ExternalName
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress-npm-gitlab
namespace: gitlab
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/upstream-vhost: "registry.npmjs.org"
nginx.ingress.kubernetes.io/ssl-passthrough: "false"
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
spec:
rules:
- host: registry.npmjs.org
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: npm-service
port:
number: 443`
`
|
Hi! I got this error when I was running npm install I solved this problem by updating my npm |
the only suck thing I know is that the warning message of |
npm ERR! This is an error with npm itself. Please report this error at: fetch GET 304 https://registry.npmjs.org/grunt-cssnano 784ms (from cache) |
Worked for me but I don't know is it true or not, I was getting the same error when I was trying to install "netlify-cli" command is C:Users>MyName>npm install netlify-cli -g, |
Hello, I ma receiving this error while using WSL2 Ubuntu 20.04. I have installed node and npm via nvm. I am trying to run npx create-react-app projectname but I keep running into the issue. I am not sure what is causing it as I have the latest version of both npm and npx. Any assistance on this would be very helpful. Thanks. |
"npm ERR! cb() never called!"
"npm ERR! cb() never called!"
"npm ERR! cb() never called!"
"npm ERR! cb() never called!"
*Updated* as of 01/15/2021
Note: Please read this doc before filing a new issue.
The text was updated successfully, but these errors were encountered: