

const http = require('http') Ĭonst server = http.

sudo apt update -y & sudo apt upgrade -y. Before we start with Ghost installation, we will update the system packages to the latest versions available. User privileges: root or non-root user with sudo privileges. Just add the following javascript code in your app.js file. A valid domain pointed to the server IP address. Now we will add a code for creating a simple Node.js sever which prins Hello World. $ sudo apt-get install nodejsįirst check installed Node.js version by following command $ node -vįirst check installed npm version by following command $ npm -vĬreate a javascript file and name it as app.js Npm will be installed automatically with node.js. Step 2 – Adding NodeJs PPA $ curl -sL | sudo -E bash -Īfter adding the node.js ppa we just need to give the node.js install command to install node.js. $ sudo apt-get install python-software-properties In addition we will also need to install python-software-properties package if its is not installed already. We will need curl to add node.js ppa in our system. This methode can also be used for other Debian and Ubuntu based Linux distributions including: Linux Mint, Linux Mint Debian Edition (LMDE), elementaryOS and others. In this post we will see how we can How to Install Latest Nodejs with Npm on Ubuntu 16.04 , 14.04o ot 12.04 LTS operating system. Node’s is an Evented I/O for JavaScript and its goal is to provide an easy way to build scalable network programs. Node.js is open-source and cross-platform which is licenced under MIT. Node.Js is Server Side JavaScript runtime environment which Runs on Google’s V8 JavaScript Engine.
