yyman001 / blog

日常疑问记录解答
5 stars 0 forks source link

yarn 命令 #34

Open yyman001 opened 6 years ago

yyman001 commented 6 years ago

常用命令

https://www.jianshu.com/p/1769ebd28bb7

// yarn的配置项:
yarn config list                                            //显示所有配置项
yarn config get <key>                                //显示某配置项
yarn config delete <key>                            //删除某配置项
yarn config set <key> <value> [-g|--global] //设置配置项

yarn config set proxy http://XX  //设置代理
yarn config set https-proxy http://XX //设置https代理

// 设置淘宝代理
yarn config set registry https://registry.npm.taobao.org/