Installing node.js

The first thing we need to do is install node.js. Amazon Linux is based on Red Hat Enterprise Linux (RHEL) and uses the Yum utility to manage and install packages. The OS comes with Extra Packages for Enterprise Linux (EPEL) preconfigured in it. As we would expect, node.js is present in EPEL:

[ec2-user@ip-172-31-22-234 ~]$ sudo yum install --enablerepo=epel -y nodejs
[ec2-user@ip-172-31-22-234 ~]$ node -v
v0.10.48  

This is definitely an old version of the node but it's going to be good enough for what we need.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset