当前位置:网站首页>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 complete
Enter 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.
边栏推荐
- Miller_Rabin 米勒拉宾概率筛【模板】
- 尚硅谷-JVM-内存和垃圾回收篇(P1~P203)
- 多智能体协同控制研究中光学动作捕捉与UWB定位技术比较
- AWS implements scheduled tasks - Lambda+EventBridge
- ECCV 2022 | Robotic Interaction Perception and Object Manipulation
- 拥塞控制,CDN,端到端
- C# List用法 List介绍
- 图像大面积缺失,也能逼真修复,新模型CM-GAN兼顾全局结构和纹理细节
- C#获得网卡信息 NetworkInterface IPInterfaceProperties
- Unity学习笔记 关于AVPro视频跳转功能(Seeking)的说明
猜你喜欢
尚硅谷-JVM-内存和垃圾回收篇(P1~P203)
How IDEA runs web programs
百度网盘安装在c盘显示系统权限限制的解决方法
IDEA如何运行web程序
八大排序汇总及其稳定性
golang-gin-pprof-使用以及安全问题
使用CompletableFuture进行异步处理业务
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
ADS与C#通信
Golang - gin - pprof - use and safety
随机推荐
networkx绘制度分布
技能大赛训练题:交换机虚拟化练习
CLion用于STM32开发
C#获得网卡信息 NetworkInterface IPInterfaceProperties
TensorRT安装及使用教程「建议收藏」
ECCV 2022 | 机器人的交互感知与物体操作
多智能体协同控制研究中光学动作捕捉与UWB定位技术比较
滑窗法切分数据
AWS实现定时任务-Lambda+EventBridge
Spark学习:为Spark Sql添加自定义优化规则
技能大赛训练题:域用户和组织单元的创建
[RPI]树莓派监控温度及报警关机保护「建议收藏」
[Niu Ke brush questions - SQL big factory interview questions] NO3. E-commerce scene (some east mall)
拥塞控制,CDN,端到端
Six Stones Programming: No matter which function you think is useless, people who can use it will not be able to leave, so at least 99%
C#高级--委托
Controller层代码这么写,简洁又优雅!
Error: npm ERR code EPERM
龟速乘【模板】
P5019 [NOIP2018 提高组] 铺设道路