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 | sudo -E bash -

For node 12.x,

#curl -sL | sudo -E bash -

Step3: Install Nodejs

#yum install -y nodejs

That's all…..

Leave a Reply