Skip to content

Instantly share code, notes, and snippets.

@douglascorrea
Last active July 7, 2019 09:46
Show Gist options
  • Select an option

  • Save douglascorrea/b81b11f8bbf8e6c45cd5 to your computer and use it in GitHub Desktop.

Select an option

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
@celly
Copy link
Copy Markdown

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
Copy Markdown

node js has moved to git@github.com:nodejs/node.git thanks for this!

@murribu
Copy link
Copy Markdown

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
Copy Markdown

@douglascorrea
Copy link
Copy Markdown
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