当前位置:网站首页>Installation steps and usage of NVM under windows10 system
Installation steps and usage of NVM under windows10 system
2022-07-25 17:33:00 【Yisu cloud】
window10 Under the system nvm Installation steps and usage of
This article is for you to know window10 Under the system nvm Installation steps and usage of . It has certain reference value , Friends in need can refer to , I hope that's helpful .
Catalog
Preface
win10 nvm Installation and use
summary
Preface
nvm It's a management nodejs Version of the tool . In actual development , The development of some projects depends on the need for lower versions nodejs Running environment , We need to use nvm To reduce nodejs edition .
win10 nvm Installation and use
1. Download and install nvm, First, the installation directory should be free of spaces and Chinese , There will be garbled code
Download address :
https://github.com/coreybutler/nvm-windows/releases

2. Unzip and install , The default installation path is C disc , If C If the disk memory is insufficient, you can install it to D disc , Generally, I install to D On the disk .

3. Change environment variables , Generally, the environment variables will be set automatically after installation , however NVM_SYMLINK You need to add an empty directory file for storage npm package

NVM_HOME Should be nvm Installation directory ,D:\SoftWare\nvm\nvm
NVM_SYMLINK Should be nvm Installation directory of plus "\nodejs", Note that both user variables and system variables need to be changed , Then determine - determine - determine . The following figure shows the directory of my installation :
D:\SoftWare\nvm\nvm\nodejs

4. stay nvm Open under installation path cmd perhaps git bash, If you open it in another path, an error will be reported , If there is nvm: commond not found( restart ! restart ! restart !)
5.nvm -v // see nvm edition , Determine if the installation is successful

You can use the following command , Conduct node Version installation , Replace
nvm list // View installed nodejs edition nvm on // Enable node.js version management nvm off // Ban node.js version management ( Don't unload anything )nvm install <version> // install node.js The name of version It's the version number for example :nvm install 8.12.0nvm use <version> // Use a version Of nodejsnvm uninstall <version> // Uninstall the specified version of nodejs
stay settings Add two lines of code , Adopt Taobao image :

node_mirror: https://npm.taobao.org/mirrors/node/npm_mirror: https://npm.taobao.org/mirrors/npm/
PS: If reported status145: The statement , Turn off the cmd, Run as administrator again cmd, perform nvm use XXX that will do .
attach : Common commands

That's all window10 Under the system nvm A brief introduction to the installation steps and use methods of , Of course, we have to use the above differences in detail before we can understand . If you want to know more , Welcome to the Yisu cloud industry information channel !
边栏推荐
- Which one of the electronic products has a longer service life??
- ACL 2022 | comparative learning based on optimal transmission to achieve interpretable semantic text similarity
- Text translation software - text batch translation converter free of charge
- Summary of 80 domestic database operation documents (including tidb, Damon, opengauss, etc.)
- 我也是醉了,Eureka 延迟注册还有这个坑!
- 【硬件工程师】DC-DC隔离式开关电源模块为什么会用到变压器?
- 04.寻找两个正序数组的中位数
- 我也是醉了,Eureka 延迟注册还有这个坑!
- 理财有保本产品吗?
- I want to manage money. I don't understand. Is there a principal guaranteed financial product?
猜你喜欢

世界各地的标志性建筑物

Outlook tutorial, how to search for calendar items in outlook?

Add batch delete

Stm32 paj7620u2 gesture recognition module (IIC communication) program source code explanation

I2C通信——时序图

"Digital security" alert NFT's seven Scams

Dynamic planning topic record

对灰度图像的三维函数显示
![[Nanjing University of Aeronautics and Astronautics] information sharing for the first and second examinations of postgraduate entrance examination](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[Nanjing University of Aeronautics and Astronautics] information sharing for the first and second examinations of postgraduate entrance examination

I'm also drunk. Eureka delayed registration and this pit!
随机推荐
吴恩达机器学习编程作业无法暂停pause问题解决
I want to manage money. I don't understand. Is there a principal guaranteed financial product?
How to install govendor and open a project
第三章、数据类型和变量
Redis源码与设计剖析 -- 16.AOF持久化机制
超越 ConvNeXt、RepLKNet | 看 51×51 卷积核如何破万卷!
Trooper
04. Find the median of two positive arrays
大型仿人机器人的技术难点和应用情况
栈的顺序存储结构,链式存储结构及实现
8 年产品经验,我总结了这些持续高效研发实践经验 · 研发篇
01. Sum of two numbers
MySQL数据库中去重与连接查询的方法
第五章:流程控制
window10系统下nvm的安装步骤以及使用方法
我也是醉了,Eureka 延迟注册还有这个坑!
I2C通信——时序图
【解决方案】Microsoft Edge 浏览器 出现“无法访问该页面”问题
[knowledge atlas] practice -- Practice of question answering system based on medical knowledge atlas (Part4): problem analysis and retrieval sentence generation combined with problem classification
Calculation date or date formatting