Home  >  Article  >  Web Front-end  >  How to install and use the node version tool gnvm (win environment)

How to install and use the node version tool gnvm (win environment)

青灯夜游
青灯夜游forward
2022-01-13 18:54:124381browse

How to install and use the node version tool gnvm? The following article will introduce to you how to install the gnvm tool under Windows and manage the node version. I hope it will be helpful to you!

How to install and use the node version tool gnvm (win environment)

1. Install gnvm

1. Start cmd with administrator rights;

Make sure the node is idle (close the node in use)

2. Install gnvm:

gnvm download address: 32-bit | 64-bit Github

64-bit link: https://pan.baidu.com/s/1IN02LwtkFIqKluA4HQjFdw Extraction code: c0qu

(1) After downloading, there will be a gnvm.exe file

##  (2) Place the

gnvm.exe file in the folder where Node.js is located,

3. Verify whether gnvm is available:

Use the command

gnvm version

4. At this time You can use the gnvm command to manage the

nodejs version

2. gnvm related commands

1. Installation Multiple node versions

  gnvm install latest     // 安装最新版本的 node 
  gnvm install 10.0.0     // 安装指定版本,也可以指定安装32位或64位,eg: gnvm install 10.0.0-x64
  gnvm update latest     // 更新本地 latest 的 node 版本

2. Uninstall any version of node

  gnvm uninstall latest    // 卸载最新版本的 node 
  gnvm uninstall 10.0.0   // 卸载指定版本

3. View all locally installed node versions

  gnvm ls

4. Switch to any version of node

  gnvm use 10.0.0

5. Install npm

  gnvm npm latest

6. Install Taobao Mirror

  gnvm config registry TAOBAO

For more node-related knowledge, please visit:

nodejs tutorial! !

The above is the detailed content of How to install and use the node version tool gnvm (win environment). For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete