Created
March 31, 2011 18:37
-
-
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
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
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 |
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
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
The easiest way of installing node on Amazon Linux would be
sudo yum install nodejs npm --enablerepo=epel
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?
+1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
npm is included in the node distrib, so you can safely just jump to the
sudo npm install express
command ignoring the curl one.