当前位置:网站首页>切换node版本和切换npm源工具
切换node版本和切换npm源工具
2022-08-04 18:55:00 【我不瘦但很逗】
当项目需要的node版本不同时,可以使用nvm来安装和切换不同版本的node
nvm使用
专门对node版本进行管理的工具
1.安装
windows安装地址
其他安装方式请点击这里
2.使用
$ nvm use 16
Now using node v16.9.1 (npm v7.21.1)
$ node -v
v16.9.1
$ nvm use 14
Now using node v14.18.0 (npm v6.14.15)
$ node -v
v14.18.0
$ nvm install 12
Now using node v12.22.6 (npm v6.14.5)
$ node -v
v12.22.6
nrm介绍
1.安装
npm install -g nrm
2.使用
nrm ls //查看可选源 ,型号代表当前使用源(跟nvm list 命令一样本地安装的)
nrm use //切换源
nrm add //添加源
边栏推荐
猜你喜欢

DHCP&OSPF combined experimental demonstration (Huawei routing and switching equipment configuration)

DOM Clobbering的原理及应用

阿里云技术专家秦隆:云上如何进行混沌工程?

关于使用腾讯云HiFlow场景连接器每天提醒签到打卡

PHP代码审计10—命令执行漏洞

路由技术

LVS负载均衡群集之原理叙述

Alibaba Cloud International Edition uses ROS to build WordPress tutorial

2019 Haidian District Youth Programming Challenge Activity Elementary Group Rematch Test Questions Detailed Answers

【CCIG 2022】视觉大模型论坛
随机推荐
如何封装 svg
Google AppSheet: 无需编程构建零代码应用
STP实验
YOLOv7-Pose尝鲜,基于YOLOv7的关键点模型测评
Scala105-Spark.sql中collect_list用法
CAN光纤转换器CAN光端机解决消防火灾报警
实验室专利书写指南
After EasyCVR is locally connected to the national standard device to map the public network, the local device cannot play and cascade the solution
Go language Go language, understand Go language file operation in one article
win10 uwp DataContext
Regardless of whether you are a public, professional or non-major class, I have been sorting out the learning route for a long time here, and the learning route I have summarized is not yet rolled up
Homework 8.3 Thread Synchronization Mutex Condition Variables
Google Earth Engine APP——一键在线查看全球1984-至今年的影像同时加载一个影像分析
巴比特 | 元宇宙每日必读:微博动漫将招募全球各类虚拟偶像并为其提供扶持...
Babbitt | Metaverse daily must-read: Weibo animation will recruit all kinds of virtual idols around the world and provide support for them...
win10 uwp json
百度智能云重庆工业互联网平台正式亮相,深耕重庆,辐射西南
【STM32】入门(五):串口TTL、RS232、RS485
部署LVS-DR群集
使用.NET简单实现一个Redis的高性能克隆版(二)