npm ERR cb() never called error reason and solution

question:

When executing npm install, an error is reportednpm ERR cb() never called

solve

I saw a lot of answers on the Internet about clearing the npm cache or reinstalling node. Based on the principle of not reinstalling node, I tried many methods on the Internet except reinstalling node. In the end, it was solved by restarting Dafa.

Tell me about my steps

First, I followed the solution online npm cache clean -fand found that it didn't work.
Then I searched for the deletion agent. After executing it, it still didn't work.

npm config rm proxy
npm config rm https-proxy

Then delete node_modulesand package-lock.json, execute them all again, and npm installit still doesn't work.

Then I was too busy and went to work on other projects, so I ignored it for now. I restarted the computer the next day and it worked! ! ! Sure enough, it would be good to restart Dafa! ! !

Guess you like

Origin blog.csdn.net/weixin_44157964/article/details/125778771