npm ERR! cb() never called!

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

npm ERR! cb() never called!

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.

npm -v

Thats it.

If you have any questions or you still facing some other errors, feel free to ask in the comments section below.

Next

Run React Native App on a Specific Device or Simulator

Please share this post:
Native Mobile Application Developer (Android + IOS) having experience in Java, Swift, Kotlin, Objective C, Unity, C#, C/C++, NODE JS & PHP.

Ask a Question

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Related Posts

Begin typing your search term above and press enter to search. Press ESC to cancel.

%d bloggers like this: