当前位置:网站首页>Node version switching management using NVM
Node version switching management using NVM
2022-07-31 13:47:00 【Xiao Zhang run.】
When I was developing a project, I was confused by the version of node, because different projects use different versions of node. Some projects can also be installed in a high-version node environment, but most projects areIt can only run under a specific node version, so switching node versions frequently is a headache.
Here the official provides us with NVM, which, as the name suggests, is a version management tool for nodejs.Through it, you can install and switch between different versions of nodejs.
Use of NVM
One, installation
- nvm-noinstall.zip: Green free installation version, but needs to be configured when using.
- nvm-setup.zip: The installation version, it is recommended to use it. Similar to the next step, you can choose the nvm installation path and node installation path by yourself. Note that the installation path should not have Chinese and spaces.
After the installation is completeEnter nvm to check whether the installation is successful
Second, install/manage nodejs
1. View all versions installed locally; there is an optional parameter available, which displays all downloadable versions.
nvm list [available]
2. Install the specified node version. The version number in the command can be customized. For details, refer to the list queried by command 1
nvm install 11.13.0
3. Use a specific node version
nvm use 11.13.0
4. Uninstall
nvm uninstall 11.13.0
Three, command prompt
- nvm arch : Displays whether node is running on 32-bit or 64-bit.
- nvm install [arch] : Install node, version is a specific version or the latest stable version latest.The optional parameter arch specifies whether to install the 32-bit or 64-bit version, and the default is the system bit.You can add --insecure to bypass the remote server's SSL.
- nvm list [available] : Displays the installed list.The optional parameter available, displays all versions that can be installed.list can be simplified to ls.
- nvm on : Enable node.js version management.
- nvm off : Turn off node.js version management.
- nvm proxy [url] : Set download proxy.Without the optional parameter url, the current proxy is displayed.Setting url to none removes the proxy.
- nvm node_mirror [url] : Set the node mirror.The default is nodejs.org/dist/ If no url is written, the default url is used.After setting, you can view the settings.txt file in the installation directory, or operate directly in this file.
- nvm npm_mirror [url] : set npm mirror.github.com/npm/cli/arc… .If no url is written, the default url is used.After setting, you can view the settings.txt file in the installation directory, or operate directly in this file.
- nvm uninstall : Uninstall the specified version of node.
- nvm use [version] [arch] : Use the specified version node.32/64 bits can be specified.
- nvm root [path] : Set the directory where different versions of node are stored.If not set, the current directory is used by default.
- nvm version : Display the nvm version.version can be simplified to v.
边栏推荐
- C语言基础练(九九乘法表)与打印不同星号图案
- Spark学习:为Spark Sql添加自定义优化规则
- Text similarity calculation (Chinese and English) detailed explanation of actual combat
- Grab the tail of gold, silver and silver, unlock the programmer interview "Artifact of Brushing Questions"
- The pre-sale of the new Hyundai Paristi is open, and safety and comfort are not lost
- C#控件CheckBox的使用
- 抓住金三银四的尾巴,解锁程序员面试《刷题神器》
- Even if the image is missing in a large area, it can also be repaired realistically. The new model CM-GAN takes into account the global structure and texture details
- C# 中的Async 和 Await 的用法详解
- Buffer 与 拥塞控制
猜你喜欢
随机推荐
百度网盘安装在c盘显示系统权限限制的解决方法
C#获得网卡信息 NetworkInterface IPInterfaceProperties
AI cocoa AI frontier introduction (7.31)
技能大赛训练题:登录安全加固
AWS实现定时任务-Lambda+EventBridge
Introduction to the PartImageNet Semantic Part Segmentation dataset
C#使用NumericUpDown控件
Controller层代码这么写,简洁又优雅!
20.nn.Module
The latest complete code: Incremental training using the word2vec pre-training model (two loading methods corresponding to two saving methods) applicable to various versions of gensim
[Niu Ke brush questions - SQL big factory interview questions] NO3. E-commerce scene (some east mall)
csdn发文助手问题
Reasons and solutions for Invalid bound statement (not found)
go使用makefile脚本编译应用
C#高级--委托
LeetCode·每日一题·1161.最大层内元素和·层次遍历
滑窗法切分数据
3.爬虫之Scrapy框架1安装与使用
六石编程学:不论是哪个功能,你觉得再没用,会用的人都离不了,所以至少要做到99%
Error IDEA Terminated with exit code 1









