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
How To YUM Install Node.JS On Amazon Linux ?
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.