admin/ July 9, 2016/ Linux/ 1 comments

Install Latest nodejs, npm, node on Linux Server.

Here i am going to tell you how to install nodejs compile and install into your Linux Server.

Step 1-:

$ cd /opt/
$ wget https://nodejs.org/dist/v6.2.1/node-v6.2.1.tar.gz

Extract the tar.gz source code

$ tar -xvf node-*.tar.gz

Step 2-:
Compile and install the nodejs.

$ cd node-v6.2.1
$ ./configure
$ make
$ sudo make install

Note-:
If you found error “make command not found”

$ sudo apt-get update

$ sudo apt-get upgrade

$ sudo apt-get install build-essential

$ gcc -v

$ make -v

Check the node versions, npm version using below commands-:

Check nodejs version

$ nodejs -v

Output

v4.2.6

Check node version

$ node -v

Output

v6.2.1

Check npm verison

$ npm -v

Output

3.9.3

1 Comment

  1. Pingback: Install latest nodejs version in ubuntu 14.04 - ExceptionsHub

Leave a Reply