当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
HCIP第十七天
Say good woman programmers do testing have an advantage?More than a dozen interview, abuse of cry ~ ~ by the interviewer
BGP实验(路由反射器,联邦,路由优化)
线程基础(一)
flex布局(弹性布局)
秒杀系统小demo
字节面试题:如何保证缓存和数据库的一致性
Difference and analysis of CPU usage and load
npm 无法将“npm”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
Introduction to coredns
Redis-cluster mode (master-slave replication mode, sentinel mode, clustering mode)
About the directory structure of the web application
跨桌面端Web容器演进
Nacos安装详细过程
C语言入门实战(13):十进制数转二进制
DNS的解析流程
pytorch基本操作:使用神经网络进行分类任务
C竞赛训练
oracle 远程连接数据库
引领需求 为HR价值正名——“人力资源领先模型HRLM”成功首发









