当前位置:网站首页>View source and switch mirrors in two ways: npm and nrm
View source and switch mirrors in two ways: npm and nrm
2022-08-02 06:44:00 【m0_67393413】
First, use npm to view the current source, switch Taobao mirror, switch official source
(1) npm view the current source:
npm get registry(2) npm set Taobao mirror source:
npm config set registry http://registry.npm.taobao.org(3) npm set the official source:
npm config set registry http://www.npmjs.orgSecond, use nrm to view and switch mirrors
1. First install nrm through npm:
npm install -g nrm2. View and switch mirror sources through nrm (command): nrm ls
Note: The * below indicates when the source is currently in use,
* 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. If you want to use a certain one, use it directly. For example, I want to use the source of Taobao mirror:
nrm use taobaoThe following prompt appears, indicating that the switch is successful!

4. If the following popular situation occurs: it may be that nrm is not installed globally, npm install -g nrm.Remember to add -g
If you have any questions, please correct me!!!
Let me introduce myself first. The editor graduated from Shanghai Jiaotong University in 2013. I worked in a small company and went to big factories such as Huawei and OPPO. I joined Alibaba in 2018, until now.I know that most junior and intermediate java engineers want to upgrade their skills, they often need to explore their own growth or sign up to study, but for training institutions, the tuition fee is nearly 10,000 yuan, which is really stressful.Self-learning that is not systematic is very inefficient and lengthy, and it is easy to hit the ceiling and the technology stops.Therefore, I collected a "full set of learning materials for java development" for everyone. The original intention is also very simple. I hope to help friends who want to learn by themselves but don't know where to start, and at the same time reduce everyone's burden.Add the business card below to get a full set of learning materials
边栏推荐
- Redis-cluster mode (master-slave replication mode, sentinel mode, clustering mode)
- 【OpenCV从入门到实践】图像处理技术[像素](全网最详细)
- What is the most important ability of a programmer?
- Point Density-Aware Voxels for LiDAR 3D Object Detection 论文笔记
- 金山云团队分享 | 5000字读懂Presto如何与Alluxio搭配
- MarkDown公式指导手册
- Different ways of shell scripting
- go里面的基本知识
- C语言操作符详解(2)
- TikTok平台的两种账户有什么区别?
猜你喜欢
随机推荐
Introduction to coredns
机器学习——支持向量机原理
HCIP BGP综合实验 建立对等体、路由反射器、联邦、路由宣告及聚合
About the directory structure of the web application
MySQL数据表的基本操作和基于 MySQL数据表的基本操作的综合实例项目
51 MCU peripherals: ADC
Shuttle + Alluxio 加速内存Shuffle起飞
Different ways of shell scripting
虚拟现实房产展示系统提前预见未来装修效果
MySql统计函数COUNT详解
APP Bluetooth connection test of test technology
聪明人的游戏提高篇:第三章第二课:“桐桐数”(number)
国际顶会OSDI首度收录淘宝系统论文,端云协同智能获大会主旨演讲推荐
What is the most important ability of a programmer?
Detailed explanation of interface in Go language
路由规划中级篇
保证家里和企业中的WIFI安全-附AC与AP组网实验
Install and use Google Chrome
zabbix自动发现和自动注册
51 MCU Peripherals: Infrared Communication









