Node.js Setup Development Environment

As discussed in Node.js Introduction article, we can say that Node.js is a command-line tool that can be run as regular web server and it let you run a JavaScript programs by typing 'node my_app.js' in your terminal.

Download & Install Node.js

To work with node.js, we need to download and install a latest version of node.js from the https://nodejs.org/en URL. When we open the, it will automatically detect our OS and display the download link as per our operating system like as shown below.

 

Dowload Node.js for Windows from Node.js Site

 

Here, if you observe it shows two download node.js versions for windows.

 

  1. 8.12.0 LTS - Which is stable version and recommended for most users.
  2. 10.11.0 - Which is current version with latest features.

Based on your requirements, download a required node.js version for your windows by clicking on 8.12.0 LTS or 10.11.0 Current button. In our tutorial, we are going to use 10.11.0 Current latest version for windows.

 

Even you can see the different node.js download versions available for different platforms like MAC, Linux, etc. by clicking on Downloads tab or by navigating to https://nodejs.org/en/download URL like as shown below.

 

Node.js Installers for different platforms such as windows, mac, linux, etc.

 

As we have downloaded a node.js installer for windows, now we will install it in our windows machine for that double click on setup file to start the installation process like as shown below.

 

Node.js Installation Setup Wizard

 

Now, click on Next button to get started with actual download process, when you click on Next button, the installation process will start and it will you ask to accept terms and conditions to proceed further like as shown below.

 

Node.js Installation - Accept Terms and Conditions

 

When we click on Next button, we need to provide the installation location in which we want to store node.js related configuration files and click on Next button like as shown below.

 

Node.js installation - Choose destination path to install node.js

 

Next step is to select the features as per your requirement to install on your machine. To develop an application using Node.js, we required a Node.js runtime, npm package manager so we are proceeding with the default selections by clicking on Next button like as shown below.

 

Node.js installation - Select node.js features to install

 

After completion of primary configurations, now we are ready to install node.js in our windows machine by clicking on Install button like as shown below.

 

Node.js Installation - Click on Install to install Node.js

 

After we click on Install button, now the node.js setup process will start and you can see the progress of the node.js installation like as shown below.

 

Node.js installation progress on windows

 

After completion of node.js installation, we can see the success message window like as shown below and click on Finish button to close the setup wizard.

 

Node.js Installation Completion Setup Wizard

Verify Node.js Installation

After completion of node.js installation on our machine, we can verify it by opening command prompt and typing node -v. If node.js installed successfully, then it will display the version of node.js installed on our machine for that open command prompt and type command node -v like as shown below.

 

Verify Node.js Installation on Windows Machine

 

If you observe above result, we got a version of node.js 10.12.0 which we installed on our windows machine that means node.js installed successfully.

 

Same way, you can install node.js on other operating systems such as Linux, Mac, etc. by downloading a required components from https://nodejs.org/en/download URL based on your requirements.

 

In next chapters, we will learn how to use node.js to build an applications with examples.