Installing Node.js on Amazon Linux EC2 instance

Here is an easy way to install Node.js on an AWS EC2 instance running Amazon Linux. Run as root on RHEL, CentOS or Fedora, for Node.js v6 LTS: curl --silent --location https://rpm.nodesource.com/setup_6.x | bash - Alternatively for Node.js 8: curl --silent --location https://rpm.nodesource.com/setup_8.x | bash - Alternatively for Node.js 0.10: curl --silent --location https://rpm.nodesource.com/setup | …