Skip to content

Instantly share code, notes, and snippets.

@markgukov
Created March 31, 2011 18:37
Show Gist options
  • Save markgukov/896947 to your computer and use it in GitHub Desktop.
Save markgukov/896947 to your computer and use it in GitHub Desktop.
Here are the steps to install node, npm and express on Amazon 32 bit Linux AMI
Here are the steps to install node, npm and express on Amazon 32 bit Linux AMI:
sudo yum install gcc-c++
sudo yum install openssl-devel
wget http://nodejs.org/dist/node-v0.4.2.tar.gz (Pick the stable version available)
tar -zxvf node-v0.4.2.tar.gz
cd node-v0.4.2
export JOBS=2
./configure
make
sudo make install
sudo su
vi /etc/sudoers (We add node to the path of the sudo)
Find and edit the line “Defaults secure_path …” and add “:/usr/local/bin” to the end of the path
curl http://npmjs.org/install.sh | sudo sh
sudo npm install express
@kylejeske
Copy link

btw -- they've changed their URL pattern since this was written

wget http://nodejs.org/dist/node-v0.10.1.tar.gz => wget http://nodejs.org/dist/v0.10.1/node-v0.10.1.tar.gz

@adamdb
Copy link

adamdb commented Oct 7, 2014

This script might serve you better –

!/bin/bash

cd
sudo yum -y install gcc-c++ make openssl-devel git
git clone git://github.com/joyent/node.git
cd node
git checkout v0.10.26
./configure --prefix=/usr
make
sudo make install

@raeesaa
Copy link

raeesaa commented Mar 11, 2015

The easiest way of installing node on Amazon Linux would be

sudo yum install nodejs npm --enablerepo=epel

@aphelionz
Copy link

I'm looking for node 4... and i heard that --enablerepo=epel-testing would work, but alas it does not. Might there be another repo to try for version 4?

@basketofsoftkittens
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment