install node js redhat 8

C++
curl -sL https://rpm.nodesource.com/setup_12.x | bash -
yum install -y nodejs
Source

Also in C++: