当前位置:网站首页>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 !
边栏推荐
- 哈夫曼树的构建
- 04.寻找两个正序数组的中位数
- How to rectify the unqualified EMC of electronic products?
- How to install govendor and open a project
- Solution for win10 device management not recognizing gtx1080ti display device
- Wu Enda logistic regression 2
- 网上开期货账户安全吗?手续费怎么申请才低?
- Tkinter module advanced operations (I) -- transparent buttons, transparent text boxes, custom buttons and custom text boxes
- Chapter V: process control
- ROS学习笔记(四)ros 无法rosdep init 或者update解决方法
猜你喜欢
随机推荐
[vscode] support argparser/ accept command line parameters
Go language series: where does go come from and where will go?
理财有保本产品吗?
【无标题】
生成扩散模型漫谈:DDPM = 贝叶斯 + 去噪
02.两数相加
04. Find the median of two positive arrays
Hcip notes 12 days
[cadence Allegro PCB design] permanently modify the shortcut key (customized) ~ it is valid for personal test~
服务器端架构设计期末复习知识点总结
Chapter III data types and variables
pgsql有没有好用的图形化管理工具?
[knowledge atlas] practice -- Practice of question answering system based on medical knowledge atlas (Part3): rule-based problem classification
Is it safe to open a futures account online? How to apply for a low handling fee?
[PHP pseudo protocol] source code reading, file reading and writing, and arbitrary PHP command execution
01. Sum of two numbers
第三章、数据类型和变量
11. Camera and lens
04.寻找两个正序数组的中位数
The gas is exhausted! After 23 years of operation, the former "largest e-commerce website in China" has become yellow...









