安装
根据官方文档操作:
$ curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
$ sudo yum install yarn -y
$ yarn --version
1.19.1
换源
$ yarn config set registry https://registry.npm.taobao.org/
$ yarn config get registry
https://registry.npm.taobao.org/
网友评论