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 [email protected]: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
@celly
Copy link

celly commented Jan 23, 2016

In case you have to do this again, this repo was moved to: https://github.com/nodejs/node ... Thanks for this tho. I was surprised it wasn't a default package.

@itsvicsoto
Copy link

node js has moved to [email protected]:nodejs/node.git thanks for this!

@murribu
Copy link

murribu commented Feb 16, 2016

Also, the npmjs.org url returns a 301. Add the -L flag to the curl call to follow the redirect.

@itsvicsoto
Copy link

@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