当前位置:网站首页>Manage nodejs with NVM (downgrade the high version to the low version)
Manage nodejs with NVM (downgrade the high version to the low version)
2022-07-01 12:38:00 【Yunlord】
Preface
Just beginning to learn springboot+vue frame , The most troublesome thing is to configure the environment , Especially the problem of different versions of templates online and offline .
To solve this problem , Today, we mainly introduce the front end vue Environment configuration of , We go through nvm Manage different versions of node, Achieve seamless connection .
One 、nvm、npm、node Introduce
1. difference
- nvm:nodejs Version management tools , in other words : One nvm Can manage a lot of node Version and npm edition .
- nodejs: Code base needed in project development .
- npm:nodejs Package management tools , Installed nodejs When ,npm It will also be installed with , It is a package management tool ,npm management nodejs Third party plug-ins in .
2. Relationship
nvmmanagementnodejsandnpmVersion of ,npmCan managenodejsThird party plug-ins for .

Two 、nvm Installation steps
1. Before uninstalling node
Go to the control panel , Open uninstall or change program , Search for node.js, Find the installed node.js And uninstall .
2. download nvm Management tools
Download the installation package from the official website https://github.com/coreybutler/nvm-windows/releases, Download the one in the red box .

3. function nvm-setup.exe file
(1) choice “ I accept …” That line , Click on next
(2) You can customize and select the path disk according to your own situation , There should be no spaces or Chinese symbols in the path
(3) choice node.js Installation position of , You can customize and select the path disk according to your own situation , There should be no spaces or Chinese symbols in the path
(4) The last step , Click on install Installation is complete
4. Verify successful installation
nvm vIf version number appears , Successful installation ( If the installation is not successful , Check the previously installed node.js Has it been completely deleted 、 install nvm Is there anything missing in the process !).
5. Add image
After installation , We also need to add Taobao image in the setting file , So we can choose to download nodejs There are many versions to choose from and the download speed is fast
stay nvm Found under the installation path of setting.txt file 、 Open editor .
stay setting.txt Added to the document :
node_mirror: https://npm.taobao.org/mirrors/node/
npm_mirror: https://npm.taobao.org/mirrors/npm/3、 ... and 、 install node.js edition
1. View available node.js Version number
nvm list available2. Install different versions of node
nvm install 14 stay nvm install You can download it directly by adding the version number you want to install ,( for example :nvm install 14) You can install the corresponding version and automatically install the corresponding version npm edition .
3. Switch node edition
nvm use 14After successful installation , Enter the command line nvm use node Version number ( for example :nvm use 14) You can choose what you use locally Node.js edition , Use this command line to switch freely according to your own needs node.js Version run .
Bear in mind : Be sure to enter this command when installing for the first time , Can be used node.
4. see node and npm Version number
node -v
npm -v
Reference resources :
nvm Installation and use ( The detailed steps )_ Caltex's blog -CSDN Blog _nvm install
边栏推荐
- Common chart usage of Bi tools
- [20220605] Literature Translation -- visualization in virtual reality: a systematic review
- How to use opcache, an optimization acceleration component of PHP
- 华为面试题: 招聘
- Nc100 converts strings to integers (ATOI)
- GID:旷视提出全方位的检测模型知识蒸馏 | CVPR 2021
- 79. Word search [DFS + backtracking visit + traversal starting point]
- [datawhale202206] pytorch recommendation system: precision model deepfm & DIN
- GID: open vision proposes a comprehensive detection model knowledge distillation | CVPR 2021
- ROS2 Foxy depthai_ros教程
猜你喜欢

redis探索之缓存击穿、缓存雪崩、缓存穿透

How to use opcache, an optimization acceleration component of PHP

Four years after graduation: work, resign, get married, buy a house

redis探索之缓存一致性
![79. Word search [DFS + backtracking visit + traversal starting point]](/img/d6/a7693b2af435b7cf4562161ca4bd3f.png)
79. Word search [DFS + backtracking visit + traversal starting point]

Operations related to sequence table
![[20220605] Literature Translation -- visualization in virtual reality: a systematic review](/img/11/6c42957186bf530e8f9d4025a40197.png)
[20220605] Literature Translation -- visualization in virtual reality: a systematic review

logstash报错:Cannot reload pipeline, because the existing pipeline is not reloadable

【脑洞大开】《西潮》及《走向世界丛书》
![[speech signal processing] 3 speech signal visualization -- prosody](/img/06/5f57f9dfe3a0f2f70022706f7d4d17.jpg)
[speech signal processing] 3 speech signal visualization -- prosody
随机推荐
How to install php7 and perform performance test using yum
Circular linked list--
腾讯黎巍:深耕“监管科技”,护航数字经济行稳致远
Which securities company has a low, safe and reliable account opening commission
VS Code 设置单击打开新文件窗口,不覆盖前一个窗口
[brain opening] west tide and going to the world series
[encounter Django] - (II) database configuration
【20211129】Jupyter Notebook遠程服務器配置
[20220605] Literature Translation -- visualization in virtual reality: a systematic review
GPS 数据中的精度因子(DOP)与协方差之间的关系 (参考链接)
Nc100 converts strings to integers (ATOI)
Eurake分区理解
关于NAND FLASH解扣的认识
Eurake partition understanding
leetcode:226. Flip binary tree [DFS flip]
R语言基于h2o包构建二分类模型:使用h2o.gbm构建梯度提升机模型GBM、使用h2o.auc计算模型的AUC值
Compile and debug net6 source code
MySQL common functions
ASP. Net core 6 from entry to enterprise level practical development application technology summary
BIM and safety in road maintenance-buildSmart Spain