Skip to content

Instantly share code, notes, and snippets.

@douglascorrea
Last active July 7, 2019 09:46
Show Gist options
  • Save douglascorrea/b81b11f8bbf8e6c45cd5 to your computer and use it in GitHub Desktop.
Save douglascorrea/b81b11f8bbf8e6c45cd5 to your computer and use it in GitHub Desktop.
Install NodeJS on Amazon Linux EC2 (CentOS)
sudo yum install openssl openssl-devel
sudo yum groupinstall "Development Tools"
sudo yum install git-core
git clone git@github.com:nodejs/node.git
cd node
./configure
make
sudo make install
node -v
sudo yum install curl
sudo su
PATH=$PATH:/home/ec2-user/node
export PATH
curl https://www.npmjs.com/install.sh | sh
exit
@douglascorrea
Copy link
Author

Thanks for the updates. Script has been updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment