当前位置:网站首页>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.
边栏推荐
- 技能大赛训练题:登录安全加固
- 已解决(pymysqL连接数据库报错)pymysqL.err.ProgrammingError: (1146,“Table ‘test.students‘ doesn‘t exist“)
- 百度网盘安装在c盘显示系统权限限制的解决方法
- Sliding window method to segment data
- The operator,
- 抓住金三银四的尾巴,解锁程序员面试《刷题神器》
- 动作捕捉系统用于柔性机械臂的末端定位控制
- Istio微服务治理网格的全方面可视化监控(微服务架构展示、资源监控、流量监控、链路监控)
- C#控件CheckBox的使用
- C# control StatusStrip use
猜你喜欢
随机推荐
报错IDEA Terminated with exit code 1
Four ways to clear the float and its principle understanding
文本相似度计算(中英文)详解实战
CLion用于STM32开发
C# using ComboBox control
计算机复试面试问题(计算机面试常见问题)
networkx绘制度分布
最新完整代码:使用word2vec预训练模型进行增量训练(两种保存方式对应的两种加载方式)适用gensim各种版本
DELL SC compellent 康贝存储系统怎么抓取配置信息
「面经分享」西北大学 | 字节 生活服务 | 一面二面三面 HR 面
AWS implements scheduled tasks - Lambda+EventBridge
新款现代帕里斯帝预售开启,安全、舒适一个不落
页面整屏滚动效果
IDEA找不到Database解决方法
Linux bash: redis-server: 未找到命令
ADS communicate with c #
使用CompletableFuture进行异步处理业务
The batch size does not have to be a power of 2!The latest conclusions of senior ML scholars
六石编程学:不论是哪个功能,你觉得再没用,会用的人都离不了,所以至少要做到99%
LeetCode只出现一次的数字









