当前位置:网站首页>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开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担。添加下方名片,即可获取全套学习资料哦
边栏推荐
- MySQL数据表的基本操作和基于 MySQL数据表的基本操作的综合实例项目
- Block elements, inline elements (elements, span elements)
- 5款经典代码阅读器的使用方案对比
- 自动化运维工具——ansible、概述、安装、模块介绍
- leetcode每天5题-Day04
- coredns介绍
- Contents of encoding-indexes.js file printed with Bluetooth:
- Redis-----非关系数据库
- Difference and analysis of CPU usage and load
- 18 years of programmer career, read more than 200 programming books, pick out some essence to share with you
猜你喜欢
随机推荐
There are more and more talents in software testing. Why are people still reluctant to take the road of software testing?
Redis-----非关系数据库
An advanced method for solving palindromes
Redis-cluster mode (master-slave replication mode, sentinel mode, clustering mode)
Point Density-Aware Voxels for LiDAR 3D Object Detection Paper Notes
51单片机外设篇:ADC
直播系统聊天技术(八):vivo直播系统中IM消息模块的架构实践
目标检测重要概念——IOU、感受野、空洞卷积、mAP
Block elements, inline elements (
elements, span elements)Guarantee WIFI security in home and enterprise-with AC and AP networking experiment
保证家里和企业中的WIFI安全-附AC与AP组网实验
How to perform concurrent calculation (stability test and stress test)?
go里面的基本知识
点云旋转到参考坐标系方向(最小方向包围盒方法)
深入剖析成员变量和局部变量的初始化问题
触发器简单解释
C语言中i++和++i在循环中的差异性
Cyber Security Learning - Intranet Penetration 4
制作web3d动态产品展示的优点
国际顶会OSDI首度收录淘宝系统论文,端云协同智能获大会主旨演讲推荐









