Yarn

Yarn

简介

配置

  • 配置镜像源
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## 安装yrm,nrm
$ npm install -g yrm --registry https://registry.npm.taobao.org/
$ npm install -g nrm --registry https://registry.npm.taobao.org/
## 查看registry
$ yrm ls
    npm -----  https://registry.npmjs.org/
    cnpm ----  http://r.cnpmjs.org/
    taobao --  https://registry.npm.taobao.org/
    nj ------  https://registry.nodejitsu.com/
    rednpm -- http://registry.mirror.cqupt.edu.cn
    skimdb -- https://skimdb.npmjs.com/registry
    yarn ----  https://registry.yarnpkg.com
## 测试源
$ yrm test taobao
## 选择源
$ yrm use taobao

参考

  1. https://learnku.com/articles/15976/yarn-accelerate-and-modify-mirror-source-in-china
updatedupdated2024-05-152024-05-15