当前位置:网站首页>window10系统下nvm的安装步骤以及使用方法
window10系统下nvm的安装步骤以及使用方法
2022-07-25 17:20:00 【亿速云】
window10系统下nvm的安装步骤以及使用方法
本篇文章和大家了解一下window10系统下nvm的安装步骤以及使用方法。有一定的参考价值,有需要的朋友可以参考一下,希望对大家有所帮助。
目录
前言
win10 nvm安装及使用
总结
前言
nvm是一个管理nodejs版本的工具。在实际的开发中,有些项目的开发依赖需要低版本的nodejs运行环境,此时我们就需要使用nvm来降低nodejs版本。
win10 nvm安装及使用
1.下载安装nvm,首先安装目录不要有空格和中文,会出现乱码
下载地址:
https://github.com/coreybutler/nvm-windows/releases

2.解压之后安装,安装路径默认的是C盘,如果C盘内存不够的话可以安装到D盘,一般我是安装到D盘上。

3.更改环境变量,一般安装好之后环境变量会自动设置好,但是NVM_SYMLINK下需要加一个空目录文件存放npm包

NVM_HOME应为nvm的安装目录,D:\SoftWare\nvm\nvm
NVM_SYMLINK应为nvm的安装目录加"\nodejs",注意用户变量和系统变量都需要更改,然后确定-确定-确定。如下图是我安装的目录:
D:\SoftWare\nvm\nvm\nodejs

4.在nvm安装路径下打开cmd或者git bash,在其他路径下打开会报错的,如果有nvm: commond not found(重启!重启!重启!)
5.nvm -v // 查看nvm版本,判断是否安装成功

可以通过以下命令,进行node版本的安装,替换
nvm list //查看已安装的nodejs版本nvm on // 启用node.js版本管理nvm off // 禁用node.js版本管理(不卸载任何东西)nvm install <version> // 安装node.js的命名 version是版本号 例如:nvm install 8.12.0nvm use <version> //使用某一version的nodejsnvm uninstall <version> // 卸载指定版本的nodejs
在settings中加入两行代码,采用淘宝镜像:

node_mirror: https://npm.taobao.org/mirrors/node/npm_mirror: https://npm.taobao.org/mirrors/npm/
PS:若报status145:乱码,关掉cmd,重新以管理员身份运行cmd,执行nvm use XXX 即可。
附:常用命令

以上就是window10系统下nvm的安装步骤以及使用方法的简略介绍,当然详细使用上面的不同还得要大家自己使用过才领会。如果想了解更多,欢迎关注亿速云行业资讯频道哦!
边栏推荐
- HCIP笔记十一天
- Rosen's QT journey 100 QML four standard dialog boxes (color, font, file, promotion)
- Why 4everland is the best cloud computing platform for Web 3.0
- [redis] redis installation
- [knowledge atlas] practice -- Practice of question and answer system based on medical knowledge atlas (Part5 end): information retrieval and result assembly
- Update 3dcat real time cloud rendering V2.1.2 release
- We were tossed all night by a Kong performance bug
- Sogou batch push software - Sogou batch push tool [2022 latest]
- 霸榜COCO!DINO: 让目标检测拥抱Transformer
- Customize MVC project login registration and tree menu
猜你喜欢

Replicate swin on Huawei ascend910_ transformer

Rainbow plug-in extension: monitor MySQL based on MySQL exporter
![[mathematical modeling and drawing series tutorial] II. Drawing and optimization of line chart](/img/73/2b6fe0cf69fa013894abce331e1386.png)
[mathematical modeling and drawing series tutorial] II. Drawing and optimization of line chart

【知识图谱】实践篇——基于医疗知识图谱的问答系统实践(Part3):基于规则的问题分类

EDI docking commercehub orderstream

Frustrated Internet people desperately knock on the door of Web3

EasyUI drop-down box, add and put on and off shelves of products
![[knowledge atlas] practice -- Practice of question and answer system based on medical knowledge atlas (Part5 end): information retrieval and result assembly](/img/47/e70f6b86f4dded3218370da7394a07.png)
[knowledge atlas] practice -- Practice of question and answer system based on medical knowledge atlas (Part5 end): information retrieval and result assembly

Bo Yun container cloud and Devops platform won the trusted cloud "technology best practice Award"

How to prevent the unburned gas when the city gas safety is alarmed again?
随机推荐
Roson的Qt之旅#99 QML表格控件-TableView
用秩讨论线性方程组的解/三个平面的位置关系
Rainbond插件扩展:基于Mysql-Exporter监控Mysql
03.无重复字符的最长子串
Chapter V: process control
Hcip notes 11 days
枚举类和魔术值
01. Sum of two numbers
8 年产品经验,我总结了这些持续高效研发实践经验 · 研发篇
气数已尽!运营 23 年,昔日“国内第一大电商网站”黄了。。。
Go语言系列:Go从哪里来,Go将去哪里?
Rosen's QT journey 100 QML four standard dialog boxes (color, font, file, promotion)
With 8 years of product experience, I have summarized these practical experience of continuous and efficient research and development
Briefly describe the implementation principle of redis cluster
How to deploy applications on IPFs using 4everland cli
Update 3dcat real time cloud rendering V2.1.2 release
Sogou batch push software - Sogou batch push tool [2022 latest]
【目标检测】YOLOv5跑通VOC2007数据集(修复版)
04. Find the median of two positive arrays
EasyUI modification and DataGrid dialog form control use