当前位置:网站首页>Configure domestic image accelerator for yarn
Configure domestic image accelerator for yarn
2022-04-23 05:51:00 【Lin Zi 520】
1. View the currently used image source
yarn config get registry
This is a foreign image source , When we download some packages, we may not be able to download them for messy reasons , Cause the project to report an error !
2. Modify image source
2.1 Temporary use
yarn save Package name --registry https://registry.npm.taobao.org/
2.2 Global modification
yarn config set registry https://registry.npm.taobao.org/
3. Use yrm Switch yarn Mirror source
yrm It's a yarn Source Manager , Allows you to quickly switch between sources , It is YARN registry manager Abbreviation
Often the speed of downloading packages is very busy, and some will get stuck for dozens of minutes , So we need to switch images
In this way, we can download much faster
- install yrm
npm install -g yrm
- List all currently available image sources
yrm ls
belt * The number indicates the image source you are currently using
- Use Taobao image source
yrm use taobao
- Test access speed
We can also use yrm The tool tests the access speed of the image , For example, test the access speed of Taobao image
yrm test taobao
版权声明
本文为[Lin Zi 520]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230543037387.html
边栏推荐
猜你喜欢
PyEMD安装及简单使用
Differences between sea level anatomy and sea surface height anatomy
MySQL lock mechanism
Pytoch learning record (x): data preprocessing + batch normalization (BN)
基于ssm 包包商城系统
Pytorch学习记录(十):数据预处理+Batch Normalization批处理(BN)
实操—Nacos安装与配置
2-软件设计原则
第36期《AtCoder Beginner Contest 248 打比赛总结》
mysql实现主从复制/主从同步
随机推荐
POI exports to excel, and the same row of data is automatically merged into cells
Shell instruction learning 1
线性规划问题中可行解,基本解和基本可行解有什么区别?
Pytorch学习记录(三):神经网络的结构+使用Sequential、Module定义模型
Contract lock loophole
线程的底部实现原理—静态代理模式
ES6之解构函数
Duplicate key update in MySQL
PyEMD安装及简单使用
interviewter:介绍一下MySQL日期函数
JSP语法及JSTL标签
容器
JVM series (3) -- memory allocation and recycling strategy
What is JSON? First acquaintance with JSON
Opensips (1) -- detailed process of installing opensips
js数字大写方法
Common status codes
mysql如何将存储的秒转换为日期
MySQL的锁机制
Manually delete registered services on Eureka