Note: NPM Infinitely Needs Dependency Problem Solving
origin
Because I wanted to learn VUE, I started to follow the tutorial step by step to output commands. There was no problem at the beginning, and everything went smoothly.
Suddenly I don't know which step went wrong, and it keeps asking me to install dependencies. It's endless, almost knocking on it for more than an hour, and it's not over yet, it's almost crazy.
analyze
Because I use cnpm and npm at the same time, I may find that the download is too slow when using npm and I forcibly interrupt it, causing cache problems.
solve
After that, only npm can be emptied, npm cache can be emptied, nodejs can be uninstalled and reinstalled.