onlinecode

How to install node js on ubuntu 16.04 and 18.04 – onlinecode

How to install node js on ubuntu 16.04 and 18.04 – onlinecode

In this post we will give you information about How to install node js on ubuntu 16.04 and 18.04 – onlinecode. Hear we will give you detail about How to install node js on ubuntu 16.04 and 18.04 – onlinecodeAnd how to use it also give you demo for it if it is necessary.

In this article, We will learn to you how to install and download node js on ubuntu 16.04 and 18.04. first, We will know about node js. Nodejs is an open-source framework it used the javascript server and it is run on different os like Windows, Linux, Unix, and Mac, etc.

So, you can follow the below steps to download the node js and install node js on ubuntu.

Installing Using a PPA

First, We need to check which versions are compatible in our system. so, you can go to node js official website and check which version latest and stable. here we will add stable Node Js PPA using below command.

$ sudo apt-get install curl
$ curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -

Install Nodejs

In this step, we need to install the stable version of node js. so here we will install setup_12.x node js version using the below command.

$ sudo apt-get install nodejs

Check node js and npm version

Now, After the complete node js installation, we need to know which version install in our system. so we can know the version using the below command.

$ node -v

Similarly, we can know the version of NPM using the below command.

$ npm -v

Simple node js application

here, we will create a simple hello world application. so you can follow below Url.

Please follow and like us:

Hope this code and post will helped you for implement How to install node js on ubuntu 16.04 and 18.04 – onlinecode. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs

For More Info See :: laravel And github