当前位置:网站首页>npm、nrm两种方式查看源和切换镜像
npm、nrm两种方式查看源和切换镜像
2022-08-02 05:18:00 【m0_67393413】
一、使用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、首先通过npm安装nrm:
npm install -g 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
出现下面提示就说明切换成功了!
4、如果出现下面的爆红情况:可能是没有全局安装nrm,npm install -g nrm。全局安装记得加-g
如有问题,欢迎指正!!!
先自我介绍一下,小编13年上师交大毕业,曾经在小公司待过,去过华为OPPO等大厂,18年进入阿里,直到现在。深知大多数初中级java工程师,想要升技能,往往是需要自己摸索成长或是报班学习,但对于培训机构动则近万元的学费,着实压力不小。自己不成体系的自学效率很低又漫长,而且容易碰到天花板技术停止不前。因此我收集了一份《java开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担。添加下方名片,即可获取全套学习资料哦
边栏推荐
猜你喜欢
Shuttle + Alluxio 加速内存Shuffle起飞
Install and use Google Chrome
Stress testing and performance analysis of node projects
腾讯大咖分享 | 腾讯Alluxio(DOP)在金融场景的落地与优化实践
nacos registry
OAuth 授权协议 | 都云原生时代了,我们应该多懂一点OAuth ?
25K test old bird's 6-year experience in interviews, four types of companies, four types of questions...
Redis-----非关系数据库
C语言小游戏——扫雷小游戏
目标检测重要概念——IOU、感受野、空洞卷积、mAP
随机推荐
保证家里和企业中的WIFI安全-附AC与AP组网实验
Smart people's game improvement: Chapter 3, Lesson 2: "Number of Tongtong" (number)
Stress testing and performance analysis of node projects
Meta公司新探索 | 利用Alluxio数据缓存降低Presto延迟
flex layout (flexible layout)
The virtual reality real estate display system foresees the future decoration effect in advance
Introduction to coredns
Redis-cluster mode (master-slave replication mode, sentinel mode, clustering mode)
CPU使用率和负载区别及分析
[OpenCV from entry to practice] image processing technology [pixel] (the most detailed in the whole network)
Use the browser's local storage to realize the function of remembering the user name
25K test old bird's 6-year experience in interviews, four types of companies, four types of questions...
How to perform concurrent calculation (stability test and stress test)?
在腾讯做外包测试的那些日子.....
聪明人的游戏提高篇:第三章第二课:“桐桐数”(number)
引领需求 为HR价值正名——“人力资源领先模型HRLM”成功首发
为什么4个字节的float要比8个字节的long大呢?
卸载redis
Luogu mini game Daquan (everyone who uses Luogu must know)
金山云团队分享 | 5000字读懂Presto如何与Alluxio搭配