Getting `npm ERR! cb() never called` error while installing npm package


I am trying to install a npm package but it is showing the error

npm ERR! cb() never called

How to fix this?

1 Answer

4 years ago by

I had faced the same issue and I'm able to fix after deleting the package-lock.json file and clearing the npm cache. You can clear the cache using the below command

npm cache clean --force

4 years ago by Divya