配置yarn新淘宝镜像和代理

1.安装yarn

npm install yarn -g

2.配置yarn淘宝镜像

yarn config set registry https://registry.npmmirror.com

3.查询yarn镜像地址

yarn config get registry

4.恢复官方镜像

yarn config set registry https://registry.yarnpkg.com

5.删除代理

yarn config delete proxy
yarn config delete https-proxy

6.设置代理

yarn config set proxy http://127.0.0.1:8080
yarn config set https-proxy http://127.0.0.1:8080
posted on 2024-02-02 14:19  Steven_YF  阅读(32)  评论(0编辑  收藏  举报