Yarn 初始化

本文最后更新于:2024年3月18日 凌晨

Yarn 初始化

安装

1
$ npm install -g yarn
  • 查看版本号。
1
$ yarn --version

换源

1
$ yarn config set registry https://registry.npm.taobao.org #配置国内镜像-淘宝镜像。

代理配置

设置代理

1
2
$ yarn config set proxy http://username:password@server:port
$ yarn confit set https-proxy http://username:password@server:port

取消代理

1
2
$ yarn config delete proxy
$ yarn config delete https-proxy

本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!