Installing nodeJS

Solution 1:

You may need to unzip the file before untarring it.

gzip -d node-v0.4.4.tar.gz
tar -xvf node-v0.4.4.tar
cd node-v0.4.4
./configure

Solution 2:

There is more simpler way:

$ sudo pip install nodeenv

# install latest node.js in sandbox
$ nodeenv test-node-env

# activate sandbox environment
$ source ./test-node-env/bin/activate

# work in sandbox
(test-node-env) $ node -v
v0.4.6

nodeenv - virtual environment for node.js