1. First, uninstall the Node.js-related installation in the current environment through the control panel application, and clean up the remaining folders and other files on the disk
2. Download nvm to manage node version
官网:https://github.com/coreybutler/nvm-windows/releases
3. Install nvm
4. cmd to view the version
C:\Users\Administrator>nvm -v
1.1.10
5. Set Taobao source
C:\Users\Administrator> nvm npm_mirror https://npm.taobao.org/mirrors/npm/
6. Check the available versions of node: nvm ls available
7. Download the corresponding version of online node nvm install node版本
8. Check the local node version nvm ls
9. Switch the currently used node versionnvm use 版本号
If you want to delete: npm uninstall node版本号