Install 4.x.x version.
# curl --silent --location https://rpm.nodesource.com/setup_4.x | bash -
# yum -y install nodejs
Install 6.x.x version.
# curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -
# yum -y install nodejs
https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora