How to install Nodejs Ubuntu

Node.js is an open-source, cross-platform JavaScript runtime environment for developing a wide variety of tools and applications. Node.js runs on most operating systems, including Linux, OSX and Windows.

This tutorial exaplains the steps to install Nodejs in Ubuntu server.

Step1: Install the PPA(Personal Package Archive)

For the most recent LTS (the 6.x branch),

#curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -

For the older LTS (the 4.x branch),

#curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -

For the currently active release (the 7.x branch),

#curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -

Step2: Install Nodejs

#apt-get install nodejs

Step3: Install npm dependencies

#apt-get install build-essential

 

That's all.....

Leave a Reply

Your email address will not be published. Required fields are marked *