Centos7.x下安装node.js和yarn

yarn install

Posted by lhbasura Blog on February 12, 2019
   

原文 链接

安装node

curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -
sudo yum -y install nodejs`

安装yarn

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