curl -sL https://rpm.nodesource.com/setup_8.x | sudo bash -
or
curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash -
The above are both LTS version.
sudo yum -y install gcc-c++ make
curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
sudo yum -y install yarn
sudo yum -y install nodejs
本作品採用《CC 協議》,轉載必須註明作者和本文連結