NVM node. JS Version Control Tool
Download NVM Package Address: https://github.com/coreybutler/nvm-windows/releases
We choose the first: Nvm-noinstall.zip after the download is complete, unzip to a place, for example: C:\DEV\NVM inside the file list is like this: Elevate.cmd, Elevate.vbs, Install.cmd, LICENSE, Nvm.exe
Double-click Install.cmd and then let you enter the "compressed file decompression or copy to an absolute path" first without it, directly enter, after success, will be in the root of the C drive to generate a settings.txt text file, the file is cut into the C:\DEV\NVM directory, Then we change the content to this:
Then we started to configure the environment variables, because just click on the Install.cmd file, then in the environment variables in the system variables, generate two environment variables: and we began to modify the variables of the NVM_HOME
NVM_SYMLINK
two variable names: The value of the variable NVM_HOME
is: C:\dev\nvm
; NVM_SYMLINK
The value of the variable is:C:\dev\nodejs
We will also find that in path will be automatically added to the C:\DEV\NVM, or C:\dev\nodejs, if any, delete them, no better, we have to configure, at the front of the path input:;%NVM_HOME%;%NVM_SYMLINK%;
Open a CMD window input command: nvm v
, then we will see the version information of the current NVM. Then we can install the Nodejs.
Install node with NVM:
nvm can download the node. JS version View address: Https://github.com/coreybutler/nodedistro/blob/master/nodeversions.json
Enter in cmd: NVM install version number;
The installation command here will actually download two files automatically: Nodejs.exe and NPM Package
Nodejs.exe Website: https://nodejs.org/dist
NPM Package: https://github.com/npm/npm/archive/version number. zip
How do I see what version of NMP corresponds to each version of node?
Can go to: view in Https://nodejs.org/dist/index.json
Do the following in CMD to ensure that node can be used:
1. Enter NVM list to view all currently installed Nodejs versions
2. Enter NVM use 4.4. To make the nodejs4.4.3 version the current usage status
3. After re-entering the NVM list, you will see a text alert with a tag behind 4.4.3.
NVM version control and node. js