Created
January 26, 2015 17:18
-
-
Save jordancalder/d92009160ff122c1fe1a to your computer and use it in GitHub Desktop.
Install Node.js and NPM on AWS
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 update | |
sudo yum install gcc-c++ make | |
sudo yum install openssl-devel | |
sudo yum install git | |
git clone git://github.com/joyent/node.git | |
cd node | |
git checkout v0.10.26 | |
./configure | |
make | |
sudo make install | |
sudo su | |
vi /etc/sudoers | |
//Find this line <Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin> | |
//Append: | |
:/usr/local/bin | |
//Now NPM | |
git clone https://github.com/isaacs/npm.git | |
cd npm | |
sudo make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment