https://github.com/nodesource/distributions#rpminstall
# Node.js LTS
curl -sL https://rpm.nodesource.com/setup_lts.x | bash -
# Remove old version
yum remove -y nodejs npm
# Clear cache
yum clean all
# Install new Node.js
yum install -y nodejs
https://github.com/nodesource/distributions#rpminstall
# Node.js LTS
curl -sL https://rpm.nodesource.com/setup_lts.x | bash -
# Remove old version
yum remove -y nodejs npm
# Clear cache
yum clean all
# Install new Node.js
yum install -y nodejs