cli icon indicating copy to clipboard operation
cli copied to clipboard

[Error] cb() never called! on Windows 10

Open yuvipatel opened this issue 6 years ago • 6 comments

While executing 'npm install' of my project got below error -

"npm ERR! cb() never called!"

My node and npm version details are-- node -- v13.6.0 npm -- 6.13.4

System Information -- Operating System: Win64 Chrome Browser Version: 79.0.3945.130 Chrome OS Version: NA Memory: 1.01GB available out of 8.45GBCPU: Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz ( x86_64architecture - 8 processors )

yuvipatel avatar Jan 23 '20 12:01 yuvipatel

#417

ljharb avatar Jan 23 '20 16:01 ljharb

Jeez can't believe that no one found the solution to this problem.

SimonMaghiar avatar Nov 25 '20 16:11 SimonMaghiar

First use this: npm cache clean --force

Then it should work!

Tomato6966 avatar Dec 17 '20 23:12 Tomato6966

Hi @Tomato6966 - Im using the configurations as below and tried all the ways suggested but still facing the same. Im running behind the corporate proxy. If i remove the npm proxy from config, it throws error related to proxy. If i add the proxy then it throws the cb() never called error. Any help would be much appreciated.

npm cache clean --force -->doesnt work

npm cache verify --> doesnt work

node -v v14.15.3

npm -v 6.14.9

npm install -g @angular/cli 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\vinothra\AppData\Roaming\npm-cache_logs\2020-12-18T17_25_28_220Z-debug.log

rvinothkumarer avatar Dec 18 '20 17:12 rvinothkumarer

Any updates on issue. I am also facing the issue for the past one week

karthikganesanTR avatar Jan 24 '21 14:01 karthikganesanTR

Hi @karthikganesanTR,

For me, I faced the issue when I was setting the http_proxy/https_proxy but actually that is not required. But instead, I will have to update my .npmrc file to have my correct artifactory. Additionally, I have also set, strict-ssl=false. Please see below,

strict-ssl=false registry=https://ARTIFACTORY/api/npm/npm/

rvinothkumarer avatar Jan 25 '21 11:01 rvinothkumarer