Objective
This blog post records its own learning process to facilitate future review.
1. What is NVM? What convenience does NVM bring?
Nvm:node version Manager, which is a node versioning tool.
Different versions of node provide APIs that may be different, some on-line projects developed using the lower version of node, as the node version updates, we want to maintain the old project and want to use the new version of Node's new features, which requires us in different
Switch in the node version. The NVM just met our needs.
Installation of 2.NVM
: https://github.com/coreybutler/nvm-windows/releases
Download the Nvm-noinstall.zip compressed package and unzip it to a local disk
Decompression results:
If the decompression result does not have a settings.txt file, double-click Install.cmd, and then press ENTER to generate the Settings.txt file, and then modify the Settings.txt file configuration.
3.NVM environment variable Configuration
NVM_HOME:D:\PROGRAMMING\DEV\NVM (here to the directory where Nvm.exe is located, I installed on the D drive)
Nvm_symlink:d:\programming\dev\nodes (Configure the directory where the node shortcut is located)
Path:%nvm_home%;%nvm_symlink% (appended after existing path, if no new PATH environment variable is created)
Now that the NVM environment variable is configured, use SET + environment variable in CMD to see if the environment variable is configured successfully
See if Nvm_home is successful and see the same other commands.
To see if the NVM installation was successful: Perform NVM, as indicated by the installation success.
4. Install node
Installation: NVM Install ' version number '----Installing the specified version of node
NVM Install latest----Installing the latest version of node
Uninstall: NVM Uninstall ' version number '----Uninstall the specified version of node
View: NVM ls----View the node version that is already installed
Using: NVM use ' version number '----node with the specified version number
This completes the ability to manage node versions with NVM, and you can use the NVM command to view additional commands if you want to learn more about the NVM commands.
Nodejs installation Configuration (nvm-windows)