How to Install Node.js on Ubuntu

*Without SUDO

[ How to install Node.Js on Ubuntu Server ]

1. wget http://nodejs.org/dist/node-v0.4.9.tar.gz

2. tar -xzf node-v0.4.9.tar.gz

3. cd node-v0.4.9

4.a  sudo apt-get -y install build-essential  ( optional )

4.b sudo apt-get install pkg-config   ( optional )

4.c sudo chown -R  $USER ~/usr/local/  ( optional )

4.d sudo apt-get install libssl-dev   ( optional )

4.e sudo apt-get install phyton   ( optional )

5. ./configure –prefix=$HOME/nodejs

6. make install

[ How to install NPM ] ( This will make sure you have latest node js )

Way 1 :

curl http://npmjs.org/install.sh | sh

Way 2:

1. git clone http://github.com/isaacs/npm.gitcd

2. cd npm

3. sudo make install

Links :

NodeJS Express and EJS Templates

http://utahjs.com/category/how-to/

NodeJS and Mysql

http://www.giantflyingsaucer.com/blog/?p=2596

http://utahjs.com/category/how-to/