How to install Nodejs on EC2 instance
This tutorial exaplains the steps to install Nodejs on EC2 instance.
Step1: Install the basic dependencies.
#yum install -y gcc-c++ make
Step2: Configure the yum repository.
For node 14.x,
#curl -sL https://rpm.nodesource.com/setup_14.x | sudo -E bash -
For node 12.x,
#curl -sL https://rpm.nodesource.com/setup_12.x | sudo -E bash -
Step3: Install Nodejs
#yum install -y nodejs
That's all…..