Last active
July 7, 2019 09:46
-
-
Save douglascorrea/b81b11f8bbf8e6c45cd5 to your computer and use it in GitHub Desktop.
Install NodeJS on Amazon Linux EC2 (CentOS)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
node js has moved to [email protected]:nodejs/node.git thanks for this!
Also, the npmjs.org url returns a 301. Add the -L flag to the curl call to follow the redirect.
curl https://www.npmjs.com/install.sh | sh
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
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.