当前位置:网站首页>[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 !
边栏推荐
- Unity UGUI不同的UI面板或者UI之间如何进行坐标匹配和变换
- [software testing] 03 -- overview of software testing
- Ros2 - first acquaintance with ros2 (I)
- Log4qt usage of logbase in QT project
- Vscode editor
- Do you choose pandas or SQL for the top 1 of data analysis in your mind?
- [software testing] 05 -- principles of software testing
- Marvell 88e1515 PHY loopback mode test
- In C language, int a= 'R'
- 【obs】x264编码:“buffer_size“
猜你喜欢

A brief introduction to heading/pitch/roll and omega/phi/kappa

逻辑结构与物理结构

U-boot initialization and workflow analysis

【Node】nvm 版本管理工具
![[software testing] 03 -- overview of software testing](/img/1e/0b6458160e34e43f021ea4797de70a.jpg)
[software testing] 03 -- overview of software testing

ROS2——常用命令行(四)

Do you choose pandas or SQL for the top 1 of data analysis in your mind?

Ros2 - workspace (V)

Literacy Ethernet MII interface types Daquan MII, RMII, smii, gmii, rgmii, sgmii, XGMII, XAUI, rxaui

【软件测试】06 -- 软件测试的基本流程
随机推荐
ROS2——初识ROS2(一)
mysql设置触发器问题
Initialization of global and static variables
PHY驱动调试之 --- PHY控制器驱动(二)
npm install -g/--save/--save-dev的区别
Technical conference arrangement
Three body goal management notes
二分查找(折半查找)
摄像头的MIPI接口、DVP接口和CSI接口
Ros2 - node (VII)
The difference between new and malloc
[software testing] 05 -- principles of software testing
Error: “MountVolume.SetUp failed for volume pvc 故障处理
ROS2——常用命令行(四)
Unity UGUI不同的UI面板或者UI之间如何进行坐标匹配和变换
Xiaomi written test real question 1
mingling
【软件测试】02 -- 软件缺陷管理
SD_ CMD_ RECEIVE_ SHIFT_ REGISTER
ROS2——功能包(六)