How to install NodeJS on Ubuntu 20.04 And AWS EC2 instance[2022 Edition]

 How to install NodeJS on Ubuntu 20.04 And AWS EC2 instance[2022 Edition]

Today we will talking about Nodejs installation on ubuntu. This works with any linux distro so no need to follow any other tutorial. Just follow the steps and Nodejs will be installed fine!
Let’s get started.

1] Local Installation on Ubuntu.

Click me It will open nodejs package manager install page.
Here you will find all the distros just click on any one of them and you will get the installation instructions. I will click Debian and ubuntu based distros. 
Or click here to open the ubuntu based page directly. Now choose any of the version you want to install.
Copy and paste the below commands in your terminal. It will install nodejs and npm directly on your system.
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - && sudo apt-get install -y nodejs

2] AWS EC2 Installation.

First you need to have a AWS Console account. After creating it login to your account and go to dashboard.
1. Create a EC2 instance.
2. Create a ssh key.
3. Connect via SSH to instance.
Once connected follow the same steps as #1] and Nodejs is installed correctly.
THANK YOU for reading this post
If you like this please bookmark this for more posts like this.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top