Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm ERR! cb() never called in windows10

I was trying to run npm install inside the project folder but every time there is this error showing npm cb() never called.

I am using node version 10.16.2 and npm version 6.9.0 in windows 10

I have tried npm cache clean --force but that didn't help

E:\contribution\contribute-to-open-source>npm install
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\papun\AppData\Roaming\npm-cache\_logs\2019-08-10T03_51_20_512Z-debug.log
like image 387
richard937 Avatar asked Aug 10 '19 18:08

richard937


2 Answers

I had the same problems and lost hours trying to solve it :(.

But then i found out that my firm has installed some new kind of firewall with self signed certificate.

Quick solution was:

npm config set strict-ssl=false

After that everything started working without 'npm cb() never called' errors

like image 89
Matjaz Avatar answered Sep 23 '22 12:09

Matjaz


I had faced the same issue, and i spend days to get a solution for the issue. In the end, i figured it out and it was an issue with my network.

Please verify your network connection and proxy settings.

In my case, I was using corporate proxy using a script. When i opened the pac file and get the proxy from there ( take XXX:XXX from the line return "PROXY XXX:XXX;";) and added to npm config proxy setting (npm config set proxy XXX:XXX), it started working and got resolved.

like image 37
Amalraj K R Avatar answered Sep 19 '22 12:09

Amalraj K R