Centos安装yarn

前提:

    用jenkins构建时,发现一直出错;于是换了另外一台虚拟机去操作,因为换的虚拟机没有yarn,所以需手动安装

 

步骤:

    1 yum install -y npm bzip2


## 升级node到最新版
npm install -g n
n latest 


2  安装yarn
curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
yum install -y yarn

 

参考链接:https://www.cnblogs.com/gelu/p/9565377.html

posted on 2019-12-31 11:20  Helianthus720  阅读(607)  评论(0编辑  收藏  举报

导航