Node.js on Ubuntu : npm ERR! cb() never called! npm ERR! not ok code 0

While setting up Node.js on Ubuntu I encountered the error below

npm ERR! cb() never called!
npm ERR! not ok code 0

This occurred because when I ran the command
npm install
and stopped it abruptly in between. ┬áThe solution that I found was to delete the folder “node_modules” that was created and then run the command below
npm cache clear
after this I ran the command nmp install again and all was working fine.

 

Recommended Books:

Posted by Sheraz Lodhi

Leave a Reply