Here are the steps to install Node.js in Ubuntu.
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install build-essential openssl libssl-dev pkg-config
Download the Nodejs Souce from the below link
http://nodejs.org/download/
Extract and move into the folder
$ ./configure
$ make
$ make install
After completing all the above steps add the below code in any of these files ~/.profile or ~/.bash_profile or ~/.bashrc or ~/.zshenv
export PATH=$PATH:/opt/node/bin
For Detailed Installations please refer to the below link.
https://github.com/joyent/node/wiki/Installation
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install build-essential openssl libssl-dev pkg-config
Download the Nodejs Souce from the below link
http://nodejs.org/download/
Extract and move into the folder
$ ./configure
$ make
$ make install
After completing all the above steps add the below code in any of these files ~/.profile or ~/.bash_profile or ~/.bashrc or ~/.zshenv
export PATH=$PATH:/opt/node/bin
For Detailed Installations please refer to the below link.
https://github.com/joyent/node/wiki/Installation