centos安装yarn
yum install -y npm bzip2
## 升级node到最新版
npm install -g n
n latest
## 安装yarn
curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
yum install -y yarn
yum install -y npm bzip2
## 升级node到最新版
npm install -g n
n latest
## 安装yarn
curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
yum install -y yarn