
The web server has been started on port 3000. Now start the node service using the following command.

Create a file http_server.js vim http_server.jsĪnd add the following content var http = require('http')

Let’s create a web server with “Hello World!” text. If you want to test your node.js install. Step 4 – Create Demo Web Server (Optional) You can find more details about current version on node.js official website.

We also need to install the software-properties-common package if not installed already. You are required to add Node.js PPA to your system provided by the Nodejs official website. To install specific nodejs version, Visit our tutorial Install Specific Nodejs Version with NVM. You can install Node.js through the official Debian repositories but the version might be quite old for your projects requirements.
