I have recently faced this error “npm ERR cb never called” while running
npm install command in my react-native project to install node modules. Here I am going to share the solution to the problem. The screenshot of the error is the following
Solution: “npm ERR cb never called“
I have solved this error by running the following command first before running the actually
npm install command. This command will clean npm cache folder. Here is the official documentation.
sudo npm cache verify
The above command works if your npm version is 5 or above otherwise please run the following command.
npm cache clean
Now You can run
npm install command again and this time all the node modules should be installed perfectly without the “npm ERR cb never called” Error.
How to Check Current NPM version
If you are not sure what is your current npm version, you can check with the following command.
If you have any questions or you still facing some other errors, feel free to ask in the comments section below.