# yarn

  • yarn 与 npm 命令

image.png (opens new window)

  • yarn 安装
npm install yarn@latest -g

1
2

# yrm 切换源

npm install -g yrm

# 源列表
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 use taobao
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Last Updated: 4/8/2024, 3:34:45 AM