Assumes a fresh install of Ubuntu 12.04 LTS.
-
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: