Nodejs installation Configuration (nvm-windows)

Source: Internet
Author: User
Tags install node

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)

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.