Monthly Archives: December 2018

How to install node/nodejs using source code in ubuntu 14.04/16.04/18.04 server

Sometimes installing from ppa’s/source-lists will not be working smoothly, in that case install using source can be better and easy one option. Installation of nodejs on ubuntu or any linux flavour from source is easy. You need to just follow below steps. Steps are below.

Steps-

1. Download it from source distribution list.

https://nodejs.org/en/download/current/

or simply by using below commands on terminal.

wget https://nodejs.org/dist/v11.3.0/node-v11.3.0.tar.gz

2- untar the downloaded file.

tar -xzf node-v11.3.0.tar.gz

3. move to unzipped directory

cd node-v11.3.0

4. Configure source code dependencies, To generate makefile from makefile.in

./configure

5. issue make command, uses make file to build program.

make

6. issue make install command, uses makefile to to install program.

make install

It will complete the installation process, now you can check the node installed version using below command.

node -v

For more details you can refer to https://nodejs.org/en/