当前位置:网站首页>Node version manager NVM installation and switching
Node version manager NVM installation and switching
2022-07-01 11:00:00 【wade3po】
These two years , As long as the latest stable version is installed node, Generally, the version is too low . However , I encountered a version that was too high , Dependency installation failed 、 Dependent version syntax is incompatible . What can I do? , Only the version can be changed .
First installation node,npm The version is the same as node Versions are bound together , Then overwrite node,npm Will not follow the update , Need to update manually npm Up to date :
npm install -g npm
You can also update to the specified version :
npm -g install [email protected]
install node By the specified version, there are many methods , The simplest is to install the overlay , Have not tried to use third-party uninstall node What will happen if you install it again , Direct coverage is possible , You can go to node Find the specified version on the official website :
https://registry.npmmirror.com/binary.html?path=node/latest-v12.x/
Which version do you want to put the address v12 Just change it to the version you want , find x64.msi(windows 64) Download directly double-click to install overlay .
node Some package managers are also given :
tips: Many online users n Manager's , The description seen here is :n It is a simple and easy-to-use one suitable for Mac and Linux Of Node.js Version Manager . therefore windows There is no need to try again .
Recommended here nvm To manage node edition , It's really convenient and quick to use .
download nvm-setup.exe( Other environments are not found ,GitHub Using scripts , I don't know if I can make it ):
https://github.com/coreybutler/nvm-windows/releases
Double click installation :
nvm Installed directory 
Downloaded versions node Catalog , The first installation is the direct default , This directory will be assigned to the original download node, When switching versions, it will overwrite . My colleague tried , Need to follow the original node The same directory , After the installation is completed, the original can be deleted to switch successfully .
Take a look after the installation nvm -version Take a look at the version , If you have it, the installation is successful .
tips: Prompt after successful installation , Never tried to choose No , Guess if you choose no, the originally installed version will not be affected nvm control .
- nvm install 16.15.1: Install the corresponding node edition
- nvm uninstall 16.15.1: Uninstall the corresponding node edition
- nvm list: View the installed node edition
- nvm use 16.15.1: Use the corresponding node edition
After installation , View version , There is no reference to the identification of which version :
Switching versions will cause errors :
exit status 5: �ܾ����ʡ�
exit status 1: ���ļ��Ѵ���ʱ�����������ļ���
Delete the originally installed node Switch again , You will also report mistakes. :
exit status 1: �ܾ����
After deletion, run as administrator cmd Operate again and you will succeed ( Download and install without ):
tips: Someone said it was nvm Under the table of contents settings.txt Plus, it will be faster :
node_mirror: https://npm.taobao.org/mirrors/node/
npm_mirror: https://npm.taobao.org/mirrors/npm/
Tried it on , Not much feeling , If it's really slow, you can try , Otherwise, it's not necessary .
One thing to say , After the colleague installed , use husky The verification broke , Can't find node, It's also strange , It didn't work out in the end , The computer has changed .
Welcome to the official account coding Personal notes
边栏推荐
- 【Matytype】在CSDN博客中插入Mathtype行间与行内公式
- 银行卡借给别人是否构成犯罪
- Guys, how to export iceberg data to MySQL? What tools are there? Neither sqoop nor dataX
- Combinaison Oracle et json
- 个人商城二开逍遥B2C商城系统源码-可商用版/拼团拼购优惠折扣秒杀源码
- 使用强大的DBPack处理分布式事务(PHP使用教程)
- Have the bosses ever done the operation of sink shunting and writing to Clickhouse or other databases.
- LeetCode 438. 找到字符串中所有字母异位词__滑动窗口
- NC | intestinal cells and lactic acid bacteria work together to prevent Candida infection
- 基金管理人的内部控制
猜你喜欢

Database experiment report (II)

bash: ln: command not found

【AI资讯月刊】350+资源大盘点!6月不容错过的资料和动态,都都都在这里啦!<附下载>

CRC 校驗
![[MPC] ② quadprog solves positive definite, semi positive definite and negative definite quadratic programming](/img/85/56b12fd664726e4776cab69ca91d57.png)
[MPC] ② quadprog solves positive definite, semi positive definite and negative definite quadratic programming

NC | 肠道细胞和乳酸菌共同作用来防止念珠菌感染

CRC verification

NeurIPS 2022 | 细胞图像分割竞赛正式启动!

基于Matlab的开环Buck降压斩波电路Simulink仿真电路模型搭建

Yoda unified data application -- Exploration and practice of fusion computing in ant risk scenarios
随机推荐
CRC 校驗
New situation of digital collection market
.NET 5.0+ 无需依赖第三方 原生实现定时任务
Internal control of fund managers
12. Gateway new generation gateway
数据库实验报告(一)
[laravel] detailed explanation of faker data filling
prism journal导航按钮的可用性探索记录
Huawei HMS core joins hands with hypergraph to inject new momentum into 3D GIS
Sqlachemy common operations
CRC check
Ten years of sharpening a sword: unveiling the secrets of ant group's observability platform antmonitor
Half of 2022 has passed, isn't it sudden?
Matplotlib数据可视化基础
Global filter (processing time format)
YoDA统一数据应用——融合计算在蚂蚁风险场景下的探索与实践
The project bar on the left side of CodeBlocks disappears, workspace automatically saves the project, default workspace, open the last workspace, workspace (Graphic tutorial, solved)
CVPR22 |CMT:CNN和Transformer的高效结合(开源)
转义字符串
放弃深圳高薪工作回老家