yarn相关

yarn相关命令

添加代理

修改配置

yarn config set httpProxy=http://ip:port
yarn config set httpsProxy=http://ip:port

一次性

yarn --https_proxy=http://ip:port add typescript

修改registry

修改配置

yarn config set --registry=https://registry.npm.taobao.org/

一次性

yarn --registry=https://registry.npm.taobao.org/ add typescript
原文地址:https://www.cnblogs.com/jinbangyi/p/15721836.html