Here are the steps to install node, npm and express on Amazon 32 bit Linux AMI:
- sudo yum install gcc-c++ make
- sudo yum install openssl-devel
- wget http://nodejs.org/dist/node-v0.4.7.tar.gz (Pick the latest stable version available)
- tar -zxvf node-v0.4.7.tar.gz
- cd node-v0.4.7
- 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
References:
http://www.embracingthecloud.com/2010/12/05/InstallingNodejsOnAmazonEC2.aspx
https://github.com/joyent/node/wiki/Installation
Very helpful. Thanks.
I got a strange error message when running “sudo make test”: https://skitch.com/jfmercer/r9tb5/make-test-erro
Any ideas what’s wrong?
Do you try on a micro instance?
May your gods go with you!!
if you get an error about line 89 of npm install script (gzip: stdin: unexpected end of file, cd * fails); restart terminal
Pingback: How hard is it to install a node.js server on EC2? - Quora
Finally! A tutorial that worked. Most don’t include adding :/usr/local/bin to the sudoers config.
Thank you!!
superb. short, to the point, and actually works.
one thing i would point out though (and this might be obvious to others) is that once i completed step 13 (the last step), i immediately typed:
$ node
to see if everything had worked, but it told me that the command wasn’t found. i searched through the terminal looking for errors, but there wasn’t any. after a while, i realised i was still sudo, so exited it (by typing exit) and tried node again, and it worked.
just my experience.
Thanks for the tutorial.
Installing Node works, but i get stuck at installing NPM
I followed your instruction but i got stuck and the prompt gives the following message:
“Written by John Gilmore and Jay Fenlason.
fetching: http://registry.npmjs.org/npm/-/npm-1.0.106.tgz”
Have any idea why?
Pingback: Successful Thinking
Another one to the chorus of thank you notes.
Good post, it was very helpful.