参考文档https://github.com/nodesource/distributions
curl -sL https://rpm.nodesource.com/setup_12.x | bash - yum install -y nodejs
Centos7下yum安装nodejs
原文:https://www.cnblogs.com/houkaihua/p/11779118.html