NVM version control and node. js

Source: Internet
Author: User
Tags install node

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.