Setting up NodeJS on your Ubuntu Server

NodeJS has gained a significant popularity in the last few years, providing a powerful and flexible server side scripting technology. The ease of using NodeJS can be seen even in the simplified setup of an working environment.

We recommend the NodeSource NodeJS repo, to obtain a newer version, so thats what we will show in the following example.

 

   Full script:

sudo curl -sL https://deb.nodesource.com/setup_6.x | sudo bash -
sudo apt -y install nodejs

 

   Installation:

The whole setup is pretty much automated and simplified. The first line will download and run a script that adds the NodeSource repository. Once it is done you can just install NodeJS.

After the installation is complete you’ll get the ‘node’ command as well as the ‘npm’ package manager so you can go with setting up you cool NodeJS project.

 

Grow your ideas on solid ground!
CloudBalkan