当前位置:网站首页>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
边栏推荐
- [MPC] ② quadprog solves positive definite, semi positive definite and negative definite quadratic programming
- Lack of comparator, operational amplifier to save the field! (the op amp is recorded as a comparator circuit)
- Have the bosses ever done the operation of sink shunting and writing to Clickhouse or other databases.
- 放弃深圳高薪工作回老家
- Export and import of incluxdb on WIN platform
- Guys, how to export iceberg data to MySQL? What tools are there? Neither sqoop nor dataX
- Personal mall two open Xiaoyao B2C mall system source code - Commercial Version / group shopping discount seckill source code
- LeetCode.每日一题 剑指 Offer II 091. 粉刷房子 (DP问题)
- 数字藏品新一轮热度开启
- [.net6] use ml.net+onnx pre training model to liven the classic "Huaqiang buys melons" in station B
猜你喜欢

Matplotlib data visualization Foundation

JS基础--数据类型

CRC check

Infinite innovation in cloud "vision" | the 2022 Alibaba cloud live summit was officially launched

华为HMS Core携手超图为三维GIS注入新动能

Neurips 2022 | cell image segmentation competition officially launched!

The first anniversary of the data security law, which four major changes are coming?

. Net 5.0+ does not need to rely on third-party native implementation of scheduled tasks

Lack of comparator, operational amplifier to save the field! (the op amp is recorded as a comparator circuit)

Mall applet source code open source version - two open
随机推荐
【MPC】①二次规划问题MATLAB求解器quadprog
Get key code
LeetCode. One question of the day: offer II 091 Paint the house (DP problem)
[.NET6]使用ML.NET+ONNX预训练模型整活B站经典《华强买瓜》
基于Matlab的开环Buck降压斩波电路Simulink仿真电路模型搭建
12. Gateway new generation gateway
Huawei HMS core joins hands with hypergraph to inject new momentum into 3D GIS
谷歌新论文-Minerva:用语言模型解决定量推理问题
The Lantern Festival is held on the fifteenth day of the first month, and the Lantern Festival begins to celebrate the reunion
【AI资讯月刊】350+资源大盘点!6月不容错过的资料和动态,都都都在这里啦!<附下载>
NC | 肠道细胞和乳酸菌共同作用来防止念珠菌感染
What legal risks and qualifications should be paid attention to when building a digital collection platform?
基金管理人的内部控制
Yoda unified data application -- Exploration and practice of fusion computing in ant risk scenarios
数据库实验报告(一)
华为HMS Core携手超图为三维GIS注入新动能
Valgrind usage of memory leak locating tool
flutter path_provider: ^2.0.10可以获取临时目录
Oracle和JSON的結合
.NET 5.0+ 无需依赖第三方 原生实现定时任务