Assumes a fresh install of Ubuntu 12.04 LTS.
check: http://howtonode.org/how-to-install-nodejs Install the dependencies: sudo apt-get install g++ curl libssl-dev apache2-utils sudo apt-get install git-core
can see also: http://www.codediesel.com/linux/installing-node-js-on-ubuntu-10-04/ and https://gist.github.com/isaacs/579814
-
Setup the system to handle compiling and installing from source.
$ sudo apt-get install build-essential
-
If SSL support is needed then we will need to install
libssl-dev
.$ sudo apt-get install libssl-dev
-
The install script uses
curl
, so we will need to installcurl
.$ sudo apt-get install curl
-
Change into the directory containing the install script and source it.
$ . node-and-npm-in-30s.sh
N.B. This step takes a while.
-
Finally, check that the latest version of node and npm are indeed installed.
$ node -v $ npm -v
References: