You are here: Home / Debian GNU/Linux / System / Software / Install node.js on Debian

Install node.js on Debian

by Pierre-Yves Landuré last modified Mar 02, 2018 08:35

node.js is a server side Javascript framework based on the Google V8 Javascript engine.

This howto is tested on:

  • Ubuntu 11.04 Natty Narwal
  • Debian 7.0 Wheezy

Installation

Install the software needed to build the tool:

command apt-get install python build-essential libssl-dev

Download the latest version's sources:

command wget 'https://raw.github.com/biapy/howto.biapy.com/master/various/sf-downloader' \
--quiet --no-check-certificate --output-document='/tmp/sf-downloader'
source="$(command bash '/tmp/sf-downloader' --generic='http://nodejs.org/' --tgz 'nodejs' 'node-VERSION.tar.gz')"

Go to the new folder:

command pushd "${source}"

Install the tool:

./configure
command make
command make install

Leave the folder:

command popd

Remove the downloaded files:

command rm -r "${source}"

Thanks