当前位置:网站首页>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
边栏推荐
- io. lettuce. core. RedisCommandExecutionException: ERR wrong number of arguments for ‘auth‘ command
- Batch import of orange single micro service
- 异常的处理:抓抛模型
- JVM系列(3)——内存分配与回收策略
- 对象转map
- Postfix变成垃圾邮件中转站后的补救
- Pytorch learning record (IX): convolutional neural network in pytorch
- Common protocols of OSI layer
- 容器
- Pytorch学习记录(九):Pytorch中卷积神经网络
猜你喜欢

Pytorch学习记录(十二):学习率衰减+正则化

Font shape `OMX/cmex/m/n‘ in size <10.53937> not available (Font) size <10.95> substituted.

Pytorch学习记录(十一):数据增强、torchvision.transforms各函数讲解

SQL注入

Navicate连接oracle(11g)时ORA:28547 Connection to server failed probable Oeacle Net admin error

Dva中在effects中获取state的值

MySQL lock mechanism

MySQL的锁机制

JVM系列(3)——内存分配与回收策略

Pytoch learning record (x): data preprocessing + batch normalization (BN)
随机推荐
Total score of [Huawei machine test] (how to deal with the wrong answer? Go back once to represent one wrong answer)
PyEMD安装及简单使用
Deconstruction function of ES6
Pytorch學習記錄(十三):循環神經網絡((Recurrent Neural Network)
Pytorch学习记录(五):反向传播+基于梯度的优化器(SGD,Adagrad,RMSporp,Adam)
refused connection
Summary of redis classic interview questions 2022
Dwsurvey is an open source questionnaire system. Solve the problem that cannot be run and modify the bug.
PreparedStatement防止SQL注入
对象转map
MySQL transaction
umi官网yarn create @umijs/umi-app 报错:文件名、目录名或卷标语法不正确
Pytorch学习记录(九):Pytorch中卷积神经网络
mysql实现主从复制/主从同步
手动删除eureka上已经注册的服务
解决报错:ImportError: IProgress not found. Please update jupyter and ipywidgets
MySql基础狂神说
Insert picture in freemark
框架解析1.系统架构简介
创建企业邮箱账户命令