Question : install yarn on amazon linux 2
Answered by : krishan-gopal
#You mush have nodejs installed first
curl -sL https://dl.yarnpkg.com/rpm/yarn.repo -o /etc/yum.repos.d/yarn.repo
sudo yum -y install yarn
#Install nodejs
curl --silent --location https://rpm.nodesource.com/setup_16.x | bash -
yum -y install nodejs
Source : | Last Update : Sat, 27 Aug 22