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

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

青灯夜游
Release: 2022-01-13 18:54:12
forward
4430 people have browsed it

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 版本
Copy after login

2. Uninstall any version of node

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

3. View all locally installed node versions

  gnvm ls
Copy after login

4. Switch to any version of node

  gnvm use 10.0.0
Copy after login

5. Install npm

  gnvm npm latest
Copy after login

6. Install Taobao Mirror

  gnvm config registry TAOBAO
Copy after login

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!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template