当前位置:网站首页>[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 !
边栏推荐
- [nvidia] CUDA_ VISIBLE_ DEVICES
- Ethtool principle introduction and troubleshooting ideas for network card packet loss (with ethtool source code download)
- Ros2 topic (VIII)
- 网易To B,柔外刚中
- Ros2 - workspace (V)
- 2022年中纪实 -- 一个普通人的经历
- IPage能正常显示数据,但是total一直等于0
- Error: “MountVolume.SetUp failed for volume pvc 故障处理
- 程序中的负数存储及类型转换
- 2022.06.27_每日一题
猜你喜欢
Ros2 - configuration development environment (V)
PHY驱动调试之 --- PHY控制器驱动(二)
使用paping工具进行tcp端口连通性检测
Orin 两种刷机方式
【软件测试】04 -- 软件测试与软件开发
SD_CMD_RECEIVE_SHIFT_REGISTER
ROS2——初识ROS2(一)
Literacy Ethernet MII interface types Daquan MII, RMII, smii, gmii, rgmii, sgmii, XGMII, XAUI, rxaui
[untitled]
【MySQL8.0不支持表名大写-对应方案】
随机推荐
SOC_ SD_ DATA_ FSM
Ros2 - configuration development environment (V)
【Node】npm、yarn、pnpm 区别
【无标题】
Instruction execution time
二分查找(折半查找)
2022年中纪实 -- 一个普通人的经历
.net core踩坑实践
Brief description of inux camera (Mipi interface)
SRE核心体系了解
【软件测试】04 -- 软件测试与软件开发
【软件测试】06 -- 软件测试的基本流程
Logical structure and physical structure
摄像头的MIPI接口、DVP接口和CSI接口
能量守恒和打造能量缺口
The differences and connections among cookies, sessions, JWT, and tokens
The difference between new and malloc
PHY drive commissioning - phy controller drive (II)
Volcano resource reservation feature
A brief introduction to heading/pitch/roll and omega/phi/kappa