当前位置:网站首页>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
边栏推荐
- 12款大家都在用的产品管理平台
- 華為設備配置大型網絡WLAN基本業務
- LeetCode. One question of the day: offer II 091 Paint the house (DP problem)
- CRC check
- How to get the maximum value of column two and regenerate the table when the SQL Server column one is the same
- 银行卡借给别人是否构成犯罪
- A new round of popularity of digital collections opens
- [.net6] use ml.net+onnx pre training model to liven the classic "Huaqiang buys melons" in station B
- 谷歌新论文-Minerva:用语言模型解决定量推理问题
- Graduation season · advanced technology er
猜你喜欢

Yoda unified data application -- Exploration and practice of fusion computing in ant risk scenarios

《数据安全法》出台一周年,看哪四大变化来袭?

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

Half of 2022 has passed, isn't it sudden?

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

How to solve the problem of SQL?

MIT最新论文《对可解释特征的需求:动机和分类》:在机器学习模型的组成元素中建立可解释性

谷歌新论文-Minerva:用语言模型解决定量推理问题

12. Gateway new generation gateway

Suggest collecting | what to do when encountering slow SQL on opengauss?
随机推荐
CVPR 2022 | Virtual Correspondence: Humans as a Cue for Extreme-View Geometry
基金管理人的合规管理
Personal mall two open Xiaoyao B2C mall system source code - Commercial Version / group shopping discount seckill source code
12 plateformes de gestion de produits utilisées par tout le monde
【MPC】①二次规划问题MATLAB求解器quadprog
The first anniversary of the data security law, which four major changes are coming?
基金国际化的发展概况
The exclusive collection of China lunar exploration project is limited to sale!
442. duplicate data in array
华为HMS Core携手超图为三维GIS注入新动能
[paper reading] trajectory guided control prediction for end to end autonomous driving: a simple yet strong Ba
106. construct binary tree from middle order and post order traversal sequence
Dotnet console uses microsoft Maui. Getting started with graphics and skia
Mobile hard drive reads but does not display drive letter
Graduation season · advanced technology er
Addition, deletion, modification and query of database
sdp 协议中的packetization-mode方式和三种流传输模式
Want to open an account, is it safe to open an account of Huatai Securities online?
Handling distributed transactions with powerful dbpack (PHP tutorial)
PHP realizes lottery function