当前位置:网站首页>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
边栏推荐
- 深入源码分析Servlet第一个程序
- ValueError: loaded state dict contains a parameter group that doesn‘t match the size of optimizer‘s
- Golang implements Ping connectivity detection case through exec module
- excel获取两列数据的差异数据
- Transposed convolution
- Object to map
- Shell instruction learning 1
- Latex快速入门
- 多线程与高并发(2)——synchronized用法详解
- PyQy5学习(三):QLineEdit+QTextEdit
猜你喜欢
随机推荐
Split and merge multiple one-dimensional arrays into two-dimensional arrays
框架解析2.源码-登录认证
K/3 WISE系统考勤客户端日期只能选到2019年问题
Shell instruction learning 1
mysql-触发器、存储过程、存储函数
mysql sql优化之Explain
Opensips (1) -- detailed process of installing opensips
多线程与高并发(2)——synchronized用法详解
Strategy for improving the conversion rate of independent stations | recovering abandoned users
建表到页面完整实例演示—联表查询
ValueError: loaded state dict contains a parameter group that doesn‘t match the size of optimizer‘s
Differences between sea level anatomy and sea surface height anatomy
EditorConfig
JVM family (4) -- memory overflow (OOM)
Date增加天数
Anaconda
数据处理之Numpy常用函数表格整理
redhat实现目录下特定文本类型内关键字查找及vim模式下关键字查找
DBCP使用
Batch import of orange single micro service








