Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Install latest version of Nodejs on Amazon Linux
# become root
sudo -i
# remove old node
yum remove -y nodejs
# remove old node source
rm -f /etc/yum.repos.d/nodesource-el*
# clean up
yum clean all && yum update -y
# install the new RPM
curl --silent --location | bash -
# clean up
yum clean all && yum update -y
# optional: install build tools for native modules
yum install -y gcc-c++ make
# install nodejs
yum install -y nodejs
# optional: install `forever` for management
npm install forever -g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.