NodeJS Installation Setup

NodeJS Setup | NodeJS Installation on Windows, MAC/ Linux: The NodeJS development environment can be setup on Windows, Mac, Linux and Solaris. To develop any NodeJS application on any platform the below mentions tools/ SDK are required.

  • NodeJS
  • Node Package Manager (NPM)
  • IDE (Integrated Development Environment ) or TextEditor.

NOTE: NPM is included in node JS from node 6.0 version, so no need to install separately.

Install NodeJS on Windows

At first visit the official website https://nodejs.org/en/ then it automatically detect your OS and provides the downloading link as per your OS. For example Window 64 bit OS.

nodejs download for windows image

Now download node MSI for windows on clicking either 8.1.3 LTS or 10.5.0 Current buttons.

After downloading the MSI, double click on it that starts the installation process.

nodejs setup Wizard

Here click on the next and read the entire license agreement and click on install.

Click on Finish to complete the installation process of node js.

NodeJS Installation Verification on Windows

After completion of Node Js installation, you need to verify by typing the following command in command prompt.

node -v

If node js are installed successfully then it displays the node js version that installed in your system like as shown below.

nodejs installation verification image

NodeJS installation on MAC/ Linux

First, visit the official website of node js https://nodejs.org/en/download/ and now click on the suitable installer either for Mac (.pkg or .tar.gz) or Linux to download the node js installer.

nodejs download image for mac

After download, click the installer to start the node js installation process.

Now click on continue that leads to the following few steps in the installation process. After completion of the installation process, it defines the location where the node js and NPM should install.

nodejs installation

NodeJS Installation Verification on MAC/ Linux

To verify the node js installation with the terminal window and enter the below command which displays the version of your node js on Mac.

$ node -v

For Mac and Linux users, the node js can easily install from command with either Homebrew package manager for Mac OS or Linuxbrew package manager for Linux OS.

NOTE: For Linux, you may be required to install dependencies like Ruby version 1.8.6 or higher and GCC version 4.2 or higher. It’s better to install these before installing node js.

$ brew install node

Integrated Development Environment

The node JS uses JavaScript to develop an application that means you may use IDE or any text-editor tool that supports JavaScript syntax. The Visual Studio, Sublime Text, Eclipse, Aptana are the IDE’s that supports auto-complete features of Node JS.