What is the NVM
The full name of NVM is Node Version Management, which is the NodeJS version management tool. It enables you to install and switch between different nodeJS versions to achieve multiple Node versions on one device
download
Windows download the latest version at github.com/coreybutler…
Version introduction:
- Nvm-noinstall. zip: green installation-free version, which requires configuration.
- Nvm-setup. zip: Installation version, recommended for dumb-ass installation
After the installation is complete, enter NVM to check whether the installation is successful.
Install/manage NodeJS
-
View all versions installed locally. Add available to view all installable versions
nvm list [available] Copy the code
-
Use a specific version
NVM use 11.13.0
3. The unloading
NVM uninstall 11.13.0Copy the code
Matters needing attention:
1. Do not display Chinese characters or Spaces in the installation path
2. During installation, if there is a space in the node path, node -v will display an error indicating that the node cannot be found. Therefore, do not display a space in the installation path
3. The NVM node is successfully installed, but the NPM cannot be found. In this case, install another node version and switch to the newly installed node version.