当前位置:网站首页>npm、nrm两种方式查看源和切换镜像
npm、nrm两种方式查看源和切换镜像
2022-07-31 04:16:00 【白嫖leader】
一、使用npm查看当前源、切换淘宝镜像、切换官方源
(1)npm查看当前源:
npm get registry
(2)npm设置淘宝镜像源:
npm config set registry http://registry.npm.taobao.org
(3)npm设置官方源:
npm config set registry http://www.npmjs.org
二、使用nrm查看和切换镜像
1、安装nvm,之后才可以使用nrm命令
具体怎么安装大家可以百度
2、通过nrm查看和切换镜像源(命令):nrm ls
注意:下面的 * 表示当当前正在使用的源,
* npm -------- https://registry.npmjs.org/
yarn ------- https://registry.yarnpkg.com/
cnpm ------- http://r.cnpmjs.org/
taobao ----- https://registry.npm.taobao.org/
nj --------- https://registry.nodejitsu.com/
npmMirror -- https://skimdb.npmjs.com/registry/
edunpm ----- http://registry.enpmjs.org/
3、如果想要使用某一个,直接use,比如我要使用淘宝镜像的源:
nrm use taobao
出现下面提示就说明切换成功了!

边栏推荐
- [C language] Three-pointed chess (classic solution + list diagram)
- ERROR 1819 (HY000) Your password does not satisfy the current policy requirements
- Musk talks to the "virtual version" of Musk, how far is the brain-computer interaction technology from us
- BP神经网络
- MATLAB/Simulink & & STM32CubeMX tool chain completes model-based design development (MBD) (three)
- VScode+ESP32快速安装ESP-IDF插件
- ERROR 2003 (HY000) Can‘t connect to MySQL server on ‘localhost3306‘ (10061)解决办法
- [AUTOSAR-RTE]-5-Explicit (explicit) and Implicit (implicit) Sender-Receiver communication
- 安全20220712
- 数字经济时代的开源数据库创新 | 2022开放原子全球开源峰会数据库分论坛圆满召开
猜你喜欢
随机推荐
(八)Math 类、Arrays 类、System类、Biglnteger 和 BigDecimal 类、日期类
【C语言进阶】文件操作(一)
[Swift]自定义点击APP图标弹出的快捷方式
Safety 20220718
[Paper reading] Mastering the game of Go with deep neural networks and tree search
BP神经网络
exsl文件预览,word文件预览网页方法
mysql数据库安装(详细)
马斯克对话“虚拟版”马斯克,脑机交互技术离我们有多远
Bubble sort, selection sort, insertion sort, binary search directly
binom二项分布,
$attrs/$listeners
强化学习:从入门到入坑再到拉屎
(5) final, abstract class, interface, inner class
MySQL修改root账号密码
MySQL fuzzy query can use INSTR instead of LIKE
扫雷游戏(c语言写)
重磅 | 开放原子校源行活动正式启动
$parent/$children and ref
Win10 CUDA CUDNN 安装配置(torch paddlepaddle)









