Centos7 安装 nodejs

curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -

sudo yum -y install nodejs

官方地址:https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora

原文地址:https://www.cnblogs.com/betx/p/9605766.html