当前位置:网站首页>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
边栏推荐
- NC | 肠道细胞和乳酸菌共同作用来防止念珠菌感染
- Compliance management of fund managers
- applyMiddleware 原理
- The exclusive collection of China lunar exploration project is limited to sale!
- CVPR 2022 | Virtual Correspondence: Humans as a Cue for Extreme-View Geometry
- 转义字符串
- Get key code
- flutter path_provider: ^2.0.10可以获取临时目录
- [.NET6]使用ML.NET+ONNX预训练模型整活B站经典《华强买瓜》
- Huawei HMS core joins hands with hypergraph to inject new momentum into 3D GIS
猜你喜欢

Matplotlib data visualization Foundation

Combination of Oracle and JSON

Website source code whole site download website template source code download

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

华为设备配置大型网络WLAN基本业务

数字藏品平台搭建需要注意哪些法律风险及资质?
![[.NET6]使用ML.NET+ONNX预训练模型整活B站经典《华强买瓜》](/img/b3/b117481fba7257453011e4cdb1eaaa.png)
[.NET6]使用ML.NET+ONNX预训练模型整活B站经典《华强买瓜》

mysql如何把 一个数据库中的表数据 复制到 另一个数据库中(两个数据库不在同一个数据库链接下)

数字藏品新一轮热度开启

New situation of digital collection market
随机推荐
Can I choose to open an account on CICC securities? Is it safe?
The list of winners of the digital collection of "century master" was announced
[.NET6]使用ML.NET+ONNX预训练模型整活B站经典《华强买瓜》
转义字符串
网站源码整站下载 网站模板源代码下载
Error: missing revert data in call exception
Handling distributed transactions with powerful dbpack (PHP tutorial)
Rising Stars in Plant Sciences (RSPS2022) Finalist科学演讲会(6.30晚9点)
flutter Uint8List格式的图片和File格式图片的互相转换
Sqlachemy common operations
Infinite innovation in cloud "vision" | the 2022 Alibaba cloud live summit was officially launched
Oracle和JSON的结合
Project0:小游戏
How to get the maximum value of column two and regenerate the table when the SQL Server column one is the same
基金国际化的发展概况
CRC check
Project0: Games
12. Gateway new generation gateway
2022年6月编程语言排行,第一名居然是它?!
数据库实验报告(一)