Article directory
foreword
记录Windows 10 下安装nvm踩坑过程
1. Uninstall the original nodejs version
- Many online programs use the program uninstall function, but the actual test fails.
- Just delete all the contents of the original nodejs folder
Two, install nvm
- nvm official website
- Choose an installation path to install
nvm
and choosenodejs
a storage path - Enter on the command line
nvm -V
, it prompts that if there is no such command, go down. If yes, the installation was successful - Restart the computer after installation (very important)
- Install the required
nodejs
version,nvm use 使用对应版本
- Successful installation.
Summarize
nodejs
It doesn't matter if the original deletion is clean or not.- If the program cannot be deleted, you can directly empty the original node folder.
- The most important point is that if there is nothing
nvm
in the command line input after installation,nvm -V
you need to restart the computer. - reference link