当前位置:网站首页>[node] NVM version management tool
[node] NVM version management tool
2022-07-05 07:10:00 【Giggling Miaomiao house】
nvm
Concept
nvm full name node.js version management, As the name suggests, it's a nodejs Version management tools . It allows you to install and switch different versions of nodejs.
download
Open the website and we can see that there are two versions :
- nvm-noinstall.zip: Green installation free version , But you need to configure it when you use it .
- nvm-setup.zip: Installed version , Recommended
After downloading and installing , open CMD, Enter the command nvm, If the installation is successful, it will be shown as follows , You can see that it lists all kinds of commands .
install / management nodejs
- View all locally installed versions ; There are optional parameters available, Show all downloadable versions .
nvm list [available]
- install , The version number in the command can be customized .
nvm install 16.15.0
- Use a specific version
nvm use 16.15.0
- uninstall
nvm uninstall 16.15.0
Add
No installations recognized
If installing nvm Previously installed Node.js, After installation , Use nvm list
The command should have listed the previously installed version numbers , But there was No installations recognized
Tips , It means that there is no installed version .
It is said on the Internet that it is because of the installation nvm Uninstall the installed before node edition , Make sure it's clean . I'm different , I'm too lazy to unload , So I went through node -v
After knowing my native version nvm install
An identical version , So it can detect
Then you think it's ok ? Does not , I nvm use
I found it garbled , On the Internet, it is said to run in administrator mode cmd Can , I tried and still couldn't , So I obediently nvm and node It's all uninstalled , Then it was reinstalled nvm, Download various versions of node, That's all right. ,emmm, People still can't be too lazy
Set up domestic image
stay nvm install
Download too slow when , You can set nvm Domestic mirror :
Alibaba cloud
# Set up npm_mirror:
nvm npm_mirror https://npmmirror.com/mirrors/npm/
# Set up node_mirror:
nvm node_mirror https://npmmirror.com/mirrors/node/
Tencent cloud
# Set up npm_mirror:
nvm npm_mirror http://mirrors.cloud.tencent.com/npm/
# Set up node_mirror:
nvm node_mirror http://mirrors.cloud.tencent.com/nodejs-release/
Then you can experience the feeling of flying !
边栏推荐
- Application of MATLAB in Linear Algebra (4): similar matrix and quadratic form
- [software testing] 03 -- overview of software testing
- Orin 两种刷机方式
- Error: "mountvolume.setup failed for volume PVC fault handling
- 【软件测试】04 -- 软件测试与软件开发
- In C language, int a= 'R'
- Use the Paping tool to detect TCP port connectivity
- GDB code debugging
- kata container
- Three body goal management notes
猜你喜欢
ethtool 原理介绍和解决网卡丢包排查思路(附ethtool源码下载)
Ret2xx---- common CTF template proposition in PWN
数学分析_笔记_第8章:重积分
SOC_SD_DATA_FSM
Intelligent target detection 59 -- detailed explanation of pytoch focal loss and its implementation in yolov4
Ethtool principle introduction and troubleshooting ideas for network card packet loss (with ethtool source code download)
Orin installs CUDA environment
iNFTnews | 喝茶送虚拟股票?浅析奈雪的茶“发币”
ROS2——node节点(七)
Use the Paping tool to detect TCP port connectivity
随机推荐
The difference between new and malloc
1290_ Implementation analysis of prvtaskistasksuspended() interface in FreeRTOS
【软件测试】04 -- 软件测试与软件开发
Positive height system
[software testing] 06 -- basic process of software testing
SD_CMD_SEND_SHIFT_REGISTER
PHY drive commissioning - phy controller drive (II)
Ros2 - install ros2 (III)
Architecture
docker安装mysql并使用navicat连接
Marvell 88E1515 PHY loopback模式测试
程序中的负数存储及类型转换
UIO driven framework
Preemption of CFS scheduling
Intelligent target detection 59 -- detailed explanation of pytoch focal loss and its implementation in yolov4
window navicat连接阿里云服务器mysql步骤及常见问题
U-boot initialization and workflow analysis
Technical conference arrangement
【软件测试】05 -- 软件测试的原则
UTC, GPS time and Tai