Skip to content

Instantly share code, notes, and snippets.

@wilcollins
Created February 11, 2015 08:16
Show Gist options
  • Save wilcollins/13c2977a6d38fae92404 to your computer and use it in GitHub Desktop.
Save wilcollins/13c2977a6d38fae92404 to your computer and use it in GitHub Desktop.
Quick setup for Node.js && npm on AWS micro instance
// env setup
sudo su
yum update
yum groupinstall 'Development Tools'
yum install openssl-devel
yum install git
// node install
git clone https://github.com/joyent/node.git
cd node
checkout v0.12.0 // check http://nodejs.org for latest version
./configure && make && make install
cd ..
// add node to sudo path
vim /etc/sudoers
<find this line:>
Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin
<INSERT @ EOL>
:/usr/local/bin
<Now exit vim using :wq! >
exit ## we don’t want to sudo download npm or install npm packages
// npm install
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