Getting cb() never called! Error from npm

329 Views Asked by At

I am trying to run the command 'set NODE_ENV= && npm ci', but I am getting an error from npm saying "cb() never called!"

I have done a lot of Googling to see others have had this issue, but none of the solutions I have found have worked. Also most of the posts I have seen are several years old so they could easily be outdated now.

Does anyone know how to go about resolving this issue?

1

There are 1 best solutions below

0
SUMIT JAIN On

Try switching your network, somehow switching network worked for me.

I have tried many things, like:

  1. npm cache clean --force
  2. Delete existing node_modules, delete package-lock.json, and reinstall using - npm i
  3. npm cache verify
  4. npm clean-install

None of the above worked for me, might work for you. Try your luck.