How to fix the npm ERR! cb() never called
Learn, how to quickly solve the npm err! cb()
never called.
When we install a node packages from package.json file and package-lock.json file is corrupted due to some reasons like node.js
version is updated to the latest, we will see an error like this in our terminal.
npm WARN tar zlib error: unexpected end of file
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/saigowtham/.npm/_logs/2020-04-19T23_20_56_316Z-debug.log
To fix this error, first delete the package-lock.json
file and run the following command.
npm cache clean --force
Now, try to install your packages using the npm install
command.