Ticker

6/recent/ticker-posts

How to Install Node.js on Ubuntu 20.04

Node.js Intro

Node.js is a JavaScript runtime build on Chrome's  V8 JavaScript engine . It's a free and open-source cross platform solution . Node.js is the one of the best JavaScript platform for back-end developers . Node.js makes development more consistent and integrated.

In this guide, we'll show you how to install Node.js on Ubuntu 20.04




Installation Commands 

The below sudo apt update command is used to download package information from all configured sources.


 $ sudo apt update

First, make sure that your system has curl installed.


 $ sudo apt install curl -y

Now, we are going to run the Node Source installation script for node version 14.


 $ curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -

* If you need to install a specific node version please run the below command


 $ curl -sL https://deb.nodesource.com/setup_{your-version}.x | sudo -E bash -

The PPA will be added to your configuration and your local package cache will be updated automatically. You can now install the Node.js package in the same way you did in the previous section:.


 $ sudo apt install nodejs -y

Verify the installation by checking the version of Node.js.


 $ node -v
 Output : v14.2.0

Post a Comment

0 Comments