当前位置:网站首页>[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 !
边栏推荐
- Negative number storage and type conversion in programs
- 乐鑫面试流程
- GDB code debugging
- Intelligent target detection 59 -- detailed explanation of pytoch focal loss and its implementation in yolov4
- mysql设置触发器问题
- Technical conference arrangement
- Ros2 - Service Service (IX)
- 【obs】x264编码:“buffer_size“
- Netease to B, soft outside, hard in
- 【软件测试】02 -- 软件缺陷管理
猜你喜欢

PHY drive commissioning --- mdio/mdc interface Clause 22 and 45 (I)

ROS2——功能包(六)

inux摄像头(mipi接口)简要说明

Ros2 - workspace (V)

你心目中的数据分析 Top 1 选 Pandas 还是选 SQL?

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

docker安装mysql并使用navicat连接

并发编程 — 死锁排查及处理

. Net core stepping on the pit practice

ROS2——初识ROS2(一)
随机推荐
Pycahrm reports an error: indentation error: unindent does not match any outer indentation
Lexin interview process
Orin two brushing methods
解读最早的草图-图像翻译工作SketchyGAN
Implementation of one-dimensional convolutional neural network CNN based on FPGA (VIII) implementation of activation layer
Cloud native related technology learning
IPage能正常显示数据,但是total一直等于0
MySQL setting trigger problem
【软件测试】02 -- 软件缺陷管理
Matlab在线性代数中的应用(四):相似矩阵及二次型
SD_CMD_RECEIVE_SHIFT_REGISTER
Ros2 - ros2 vs. ros1 (II)
Powermanagerservice (I) - initialization
SOC_ SD_ DATA_ FSM
Logical structure and physical structure
SOC_ SD_ CMD_ FSM
Xavier CPU & GPU high load power consumption test
The differences and connections among cookies, sessions, JWT, and tokens
Brief description of inux camera (Mipi interface)
2022年中纪实 -- 一个普通人的经历