Centos安装yarn

来自ling
跳转至: 导航搜索
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