当前位置:网站首页>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.
边栏推荐
- All-round visual monitoring of the Istio microservice governance grid (microservice architecture display, resource monitoring, traffic monitoring, link monitoring)
- 3.爬虫之Scrapy框架1安装与使用
- 抓住金三银四的尾巴,解锁程序员面试《刷题神器》
- DELL SC compellent 康贝存储系统怎么抓取配置信息
- 代码随想录笔记_哈希_454四数相加II
- Selenium IDE for Selenium Automation Testing
- 技能大赛训练题: 子网掩码划分案例
- Install the latest pytorch gpu version
- Reasons and solutions for Invalid bound statement (not found)
- ECCV 2022 | Robotic Interaction Perception and Object Manipulation
猜你喜欢

go使用makefile脚本编译应用

网络层重点协议——IP协议

AI cocoa AI frontier introduction (7.31)

Selenium自动化测试之Selenium IDE

C#使用ComboBox控件

Edge Cloud Explained in Simple Depth | 4. Lifecycle Management

AWS implements scheduled tasks - Lambda+EventBridge

技能大赛训练题:ftp 服务攻防与加固

ECCV 2022 | Robotic Interaction Perception and Object Manipulation

A detailed explanation of the usage of Async and Await in C#
随机推荐
为什么 wireguard-go 高尚而 boringtun 孬种
ECCV2022: Recursion on Transformer without adding parameters and less computation!
49.【拷贝构造函数与重载】
LeetCode·每日一题·1161.最大层内元素和·层次遍历
报错:npm ERR code EPERM
C#控件 ToolStripProgressBar 用法
Unity study notes Description of AVPro video jump function (Seeking)
技能大赛训练题:交换机的远程管理
Shell项目实战1.系统性能分析
C#Assembly的使用
线程池的使用二
使用CompletableFuture进行异步处理业务
leetcode:2032. 至少在两个数组中出现的值
六石编程学:不论是哪个功能,你觉得再没用,会用的人都离不了,所以至少要做到99%
Productivity Tools and Plugins
VU 非父子组件通信
STM32——软件SPI控制AD7705[通俗易懂]
networkx绘制度分布
最新完整代码:使用word2vec预训练模型进行增量训练(两种保存方式对应的两种加载方式)适用gensim各种版本
Istio微服务治理网格的全方面可视化监控(微服务架构展示、资源监控、流量监控、链路监控)