Node.js multiple versioning Tools on Windows __js

Source: Internet
Author: User

I've been using NVM to manage different versions of Nodejs on Linux, but NVM has no Windows version, and today it's found that another version management tool can be used to manage it on Windows Nvm-windows. Download and install

Download Address: https://github.com/coreybutler/nvm-windows/releases

Before installing, here's one thing to note, if you've previously installed node, you need to uninstall it and clean up the directory. Here are the official instructions:

It comes with a installer (and uninstaller), because getting it should is easy. Please note that you are need to uninstall any existing versions of Node.js before installing for Windows. Also Delete any existing NODEJS installation directories (e.g., "C:\Program Files\nodejs") that might remain. NVM ' s generated symlink won't overwrite an existing (even empty) installation directory.

You should also deletes the existing NPM install location (e.g. "C:\USERS<USER>\APPDATA\ROAMING\NPM") so this NVM Install location would be correctly used instead. After install, reinstalling Global utilities (e.g. gulp) 'll have to is done with each installed version of node:
Use View the Nodejs version that is currently installed
c:\users\kongxx> NVM list

No installations recognized.

The system does not have any versions installed because it is a new installation. View Nodejs versions that can be installed

c:\users\kongxx> NVM List Available |     Current |  LTS | Old Stable |    Old unstable | |--------------|--------------|--------------|--------------| |    8.8.1 |   6.11.5 |   0.12.18 |    0.11.16 | |    8.8.0 |   6.11.4 |   0.12.17 |    0.11.15 | |    8.7.0 |   6.11.3 |   0.12.16 |    0.11.14 | |    8.6.0 |   6.11.2 |   0.12.15 |    0.11.13 | |    8.5.0 |   6.11.1 |   0.12.14 |    0.11.12 | |    8.4.0 |   6.11.0 |   0.12.13 |    0.11.11 | |    8.3.0 |   6.10.3 |   0.12.12 |    0.11.10 | |    8.2.1 |   6.10.2 |    0.12.11 |    0.11.9 | |    8.2.0 |   6.10.1 |    0.12.10 |    0.11.8 | |    8.1.4 |    6.10.0 |    0.12.9 |    0.11.7 | |    8.1.3 |    6.9.5 |    0.12.8 |    0.11.6 | |    8.1.2 |    6.9.4 |    0.12.7 |    0.11.5 | |    8.1.1 |    6.9.3 |    0.12.6 |    0.11.4 | |    8.1.0 |     6.9.2|    0.12.5 |    0.11.3 | |    8.0.0 |    6.9.1 |    0.12.4 |    0.11.2 | |    7.10.1 |    6.9.0 |    0.12.3 |    0.11.1 | |    7.10.0 |    4.8.5 |    0.12.2 |    0.11.0 | |    7.9.0 |    4.8.4 |    0.12.1 |    0.9.12 | |    7.8.0 |    4.8.3 |    0.12.0 |    0.9.11 | |    7.7.4 |   4.8.2 |    0.10.48 | 0.9.10 |
install the specified version of node

6.10.0 and 7.10.2 versions are installed here

c:\users\kongxx> nvm install 6.10.0 64-bit
...

c:\users\kongxx> nvm install 7.10.0 64-bit
...

View the installed version again

c:\users\kongxx> NVM list

    7.10.0
    6.10.0
use the specified version of node
C:\users\kongxx> NVM use 6.10.0 now
using node v6.10.0 (64-bit)

c:\users\kongxx> nvm list

    7.10.0
  * 6.10.1 (currently using 64-bit executable)

c:\users\kongxx> node-v
v6.10.0
deletes the specified version of node
c:\users\kongxx> nvm Uninstall 7.10.0
...
Related Article

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.