当前位置:网站首页>[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 !
边栏推荐
- Skywalking全部
- Mid 2022 documentary -- the experience of an ordinary person
- 【无标题】
- Energy conservation and creating energy gap
- Ret2xx---- common CTF template proposition in PWN
- [software testing] 06 -- basic process of software testing
- Orin 安装CUDA环境
- Pycahrm reports an error: indentation error: unindent does not match any outer indentation
- Use the Paping tool to detect TCP port connectivity
- UIO driven framework
猜你喜欢

IPage can display data normally, but total is always equal to 0

SOC_SD_CMD_FSM

Ethtool principle introduction and troubleshooting ideas for network card packet loss (with ethtool source code download)

ROS2——工作空间(五)

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

Volcano 资源预留特性

. Net core stepping on the pit practice

Concurrent programming - deadlock troubleshooting and handling

docker安装mysql并使用navicat连接

【无标题】
随机推荐
Binary search (half search)
PHY drive commissioning - phy controller drive (II)
二分查找(折半查找)
ROS2——Service服务(九)
IPage能正常显示数据,但是total一直等于0
1290_ Implementation analysis of prvtaskistasksuspended() interface in FreeRTOS
vim
C#学习笔记
Implementation of one-dimensional convolutional neural network CNN based on FPGA (VIII) implementation of activation layer
docker安装mysql并使用navicat连接
mysql设置触发器问题
ROS2——初识ROS2(一)
kata container
Unity ugui how to match and transform coordinates between different UI panels or uis
【软件测试】03 -- 软件测试概述
Technology blog learning website
Concurrent programming - deadlock troubleshooting and handling
Literacy Ethernet MII interface types Daquan MII, RMII, smii, gmii, rgmii, sgmii, XGMII, XAUI, rxaui
Steps and FAQs of connecting windows Navicat to Alibaba cloud server MySQL
MySQL setting trigger problem