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
posted @ 2021-12-23 05:16  benny1  阅读(31)  评论(0编辑  收藏  举报