Update System
curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash -
Install Node.js 12 LTS on CentOS 7
curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash -
sudo yum clean all && sudo yum makecache fast
sudo yum install -y gcc-c++ make
sudo yum install -y nodejs
Test
$ node -v
v12.13.0
참조
https://github.com/nodesource/distributions/blob/master/README.md
https://computingforgeeks.com/how-to-install-nodejs-on-centos-fedora/