Skip to content

Instantly share code, notes, and snippets.

@jordancalder
Created January 26, 2015 17:18
Show Gist options
  • Save jordancalder/d92009160ff122c1fe1a to your computer and use it in GitHub Desktop.
Save jordancalder/d92009160ff122c1fe1a to your computer and use it in GitHub Desktop.
Install Node.js and NPM on AWS
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