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 -f
and 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_modules
and package-lock.json
, execute them all again, and npm install
it 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! ! !