当前位置:网站首页>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
边栏推荐
- Getting started with detectron2
- [SDU chart team - core] enumeration of SVG attribute class design
- ubutnu20安裝CenterNet
- Addition, deletion, modification and query of MySQL advanced table
- setInterval、setTimeout、requestAnimationFrame
- 1. Finishing huazi Mianjing -- 1
- [leetcode refers to offer 18. Delete the node of the linked list (simple)]
- 亚马逊和Epic将入驻,微软应用商城向第三方开放
- [leetcode refers to the maximum profit of offer 63. Stock (medium)]
- 2. Finishing huazi Mianjing -- 2
猜你喜欢
How to make Jenkins job run automatically after startup
C#,打印漂亮的贝尔三角形(Bell Triangle)的源程序
阿里又一个“逆天”容器框架!这本Kubernetes进阶手册简直太全了
Use 3080ti to run tensorflow GPU = 1 X version of the source code
电脑越用越慢怎么办?文件误删除恢复方法
Addition, deletion, modification and query of MySQL advanced table
Centos7 builds MySQL master-slave replication from scratch (avoid stepping on the pit)
Deep analysis of C language function
Mysql database common sense storage engine
Fastdfs mind map
随机推荐
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ‘:app:stripDe
Introduce structured concurrency and release swift 5.5!
1.整理华子面经--1
C#,打印漂亮的贝尔三角形(Bell Triangle)的源程序
[leetcode sword finger offer 10 - II. Frog jumping steps (simple)]
小米手机全球已舍弃“MI”品牌,全面改用“xiaomi”全称品牌
Google 尝试在 Chrome 中使用 Rust
[※ leetcode refers to offer 32 - II. Print binary tree II from top to bottom (simple)]
flomo软件推荐
Normalized transforms in pytorch The real calculation process of normalize
Keywords static, extern + global and local variables
Thread safe sigleton (singleton mode)
[leetcode sword finger offer 28. Symmetric binary tree (simple)]
[leetcode refers to offer 52. The first common node of two linked lists (simple)]
Opencv application -- jigsaw puzzle
Tensorflow and pytorch middle note feature map size adjustment to achieve up sampling
MySQL advanced common functions
引入结构化并发,Swift 5.5 发布!
Pycharm Chinese plug-in
Selenium displays webdriverwait