Created
February 11, 2015 08:16
-
-
Save wilcollins/13c2977a6d38fae92404 to your computer and use it in GitHub Desktop.
Quick setup for Node.js && npm on AWS micro instance
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
// 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