当前位置:网站首页>NVM introduction, NVM download, installation and use (node version management)
NVM introduction, NVM download, installation and use (node version management)
2022-04-23 21:25:00 【Sister Chunfeng】
One 、nvm Introduce
At work , We may be doing it at the same time 2 Development of one or more different projects , The needs of each project are different , Furthermore, different projects must rely on different versions of NodeJS Running environment , In this case , For maintaining multiple versions of node It will be a very troublesome thing ,nvm It is to solve this problem that , It can easily carry out multiple tests on the same device node Switch between versions .
Two 、nvm Download, install and use
2.1 nvm download
Installation package download address :https://github.com/coreybutler/nvm-windows/releases ,windows System download nvm-setup.zip Installation package 
2.2 nvm install
If it has been installed separately on the computer before node, To uninstall first , Then decompress nvm-setup.zip Installation package , Enter the unzipped folder , double-click exe Suffix file for installation 
The following interface is to select and install nvm The path of , You can change the installation path , General default path

This is nodejs Installation position of , without nodejs Create a new folder ( Later, it was found that he would automatically generate a shortcut )
Open window command window+x choice windows PowerShell
After installation, enter nvm -v View version .
Set below setting.txt, Ignore not set
After installation , Find the path to install , Some simple configurations , open setting.txt
Add these two lines of code later
node_mirror: https://npm.taobao.org/mirrors/node/
npm_mirror: https://npm.taobao.org/mirrors/npm/

2.3 nvm Use
nvm off // Ban node.js version management ( Don't unload anything )
nvm on // Enable node.js version management
nvm install <version> // install node.js The name of version It's the version number for example :nvm install 8.12.0
nvm uninstall <version> // uninstall node.js Yes, orders , Uninstall the specified version of nodejs, When the installation fails, uninstall and use
nvm ls // Displays all installed node.js edition
nvm list available // Displays all that can be installed node.js Version of
nvm use <version> // Switch to use the specified nodejs edition
nvm v // Show nvm edition
nvm install stable // Install the latest stable version
See the picture below :
If you use node -v, Tips node:command not found, You need to nvm use node Version number , See the picture below 
The currently used... Is shown below node The version is 14.16.1
版权声明
本文为[Sister Chunfeng]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/110/202204200620163887.html
边栏推荐
- Normalized transforms in pytorch The real calculation process of normalize
- Selenium 显示等待WebDriverWait
- 小米手机全球已舍弃“MI”品牌,全面改用“xiaomi”全称品牌
- IOT design and development
- Thinking after learning to type
- Assertionerror: invalid device ID and runtimeerror: CUDA error: invalid device ordinal
- Addition, deletion, modification and query of advanced MySQL data (DML)
- Pycharm download and installation
- Leetcode-279-complete square number
- Win 11K in 100 days, super complete learning guide for job transfer test
猜你喜欢

电脑越用越慢怎么办?文件误删除恢复方法

Fastdfs mind map

Flomo software recommendation

go interface
![[leetcode refers to offer 27. Image of binary tree (simple)]](/img/65/85e63a8b7916af058d78d72d775530.png)
[leetcode refers to offer 27. Image of binary tree (simple)]

Write table of MySQL Foundation (create table)

Common commands of MySQL in Linux

go defer

Addition, deletion, modification and query of advanced MySQL data (DML)

On the three paradigms of database design
随机推荐
flomo软件推荐
Deep analysis of C language function
How to make Jenkins job run automatically after startup
1.整理华子面经--1
Zhongchuang storage | how to choose a useful distributed storage cloud disk
Sequential state
Question brushing plan - depth first search (II)
Centralized record of experimental problems
Yolov5 NMS source code understanding
Introduction to tensorrt
[leetcode refers to offer 21. Adjust the array order so that odd numbers precede even numbers (simple)]
C#,打印漂亮的贝尔三角形(Bell Triangle)的源程序
ROS学习笔记-----ROS的使用教程
C knowledge
Lunch on the 23rd day at home
IOT 设计与开发
ubutnu20安装CenterNet
What about laptop Caton? Teach you to reinstall the system with one click to "revive" the computer
[※ leetcode refers to offer 48. The longest substring without repeated characters (medium)]