How To YUM Install Node.JS On Amazon Linux ?
Last Updated :
13 Feb, 2024
yum stands for Yellowdog Updater Modified is a package manager utility for Red Hat-compatible Linux operating systems. just like 'apt' used for Ubuntu distribution yum is used to install, update, and remove software packages. yum simplifies the process of installing software packages and ensures that all necessary packages are installed correctly.
What is Node JS?
Node JS is a javascript-based open-source runtime environment that allows developers to run code on the front end as well as on backend development. The main advantage of node js is that developers can use javascript as their language for client-side & server-side which ultimately simplifies the development of an application. Node JS is extensively used in building real-time applications like chat applications, APIs, and many more.
Step-By-Step Guide to yum install Node.JS on Amazon Linux
Step 1: Log in to your AWS Management Console. To know how to create an Amazon free tier account refer to Amazon Web Services (AWS) – Free Tier Account Set up.
Step 2: Launch one Amazon Linux Instance.
Step 3: After Launching your EC2 instance wait for it to pass 2/2 status checks and then connect to your ec2 instance
Note: We have used putty to connect to our instance you can use other alternatives as well like MobaXterm, KiTTY, Solar-PuTTY, etc.

Step 4: Enter your username to login to ec2 instance. Default username for Amazon Linux is ec2-user.

Step 5: Gain Root access using sudo -s to avoid any errors

Step 6: use yum install nodejs command to install on amazon linux after entering on the terminal it will show that all the necessary information like what are the dependencies yum going to install etc.

Step 7: Type Y in Is this ok [y/N] message to continue with the installation after typing yum will install the node js in few seconds.if all goes correct it will show Complete! message like in below image which means that node js is correctly installed on your amazon linux ec2 instance.


Step 8: In the last step, we Verify that node js installed all or not by using node command. you can use node -v command as well which gives you installed version of node js

Conclusion
In this article, we have gone through step by step explanation of how we can install the node js on amazon linux using yum package manager.
Similar Reads
How to Install Node.js on Linux Installing Node.js on a Linux-based operating system can vary slightly depending on your distribution. This guide will walk you through various methods to install Node.js and npm (Node Package Manager) on Linux, whether using Ubuntu, Debian, or other distributions.PrerequisitesA Linux System: such a
6 min read
How to Install Docker on Amazon Linux Docker is a tool which helps to automate the deployment of applications in containers to make sure that particular applications can work efficiently in different environments without any errors.It helps developers to build, ship, and run application faster and more reliable way. In this article, we
3 min read
How to Install Node.js and npm on Ubuntu? If you're developing JavaScript applications on Ubuntu, knowing how to install Node.js on Ubuntu is essential. Node.js is a powerful runtime environment that enables server-side scripting, while npm, the Node Package Manager, allows you to manage your project's dependencies easily. This guide will w
7 min read
How to Install Node.js on a Webserver ? Node.js is a powerful, lightweight, and efficient runtime for executing JavaScript code on the server side. It is particularly well-suited for building scalable network applications. Installing Node.js on a web server enables developers to run server-side JavaScript, host web applications, and serve
2 min read
How to Install Angularjs on Linux? AngularJS as the name suggests is a JavaScript-based framework. Being more precise AngurlarJS is an open-source front-end framework for the web. It is backed and maintained by Google. It has been in the market for a long time now, its initial release dated back to Oct 2010, and its last stable relea
4 min read