通过node.js安装yarn

如果你已经装好了node,那么
1、添加repo

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

2、安装(2选1,看你装了哪个)

sudo dnf install yarn
//sudo yum install yarn
原文地址:https://www.cnblogs.com/bronya0/p/14607398.html