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!
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
gnvm.exe file in the folder where
Node.js is located,
gnvm version
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
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!