install nodejs using yum code example
Example: yum install node
curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash -
sudo yum install nodejs
curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash -
sudo yum install nodejs