Installing NodesJS in Windows

Kailash Chandra Behera | Sunday, March 04, 2018

The blogs demonstrate to download nodejs and install NodesJS in Windows Machine. This demonstration conducted with OS Windows 10 with 64 bit.

Steps of NodeJS Installation

To install NodeJS in your Windows 10 machine, follow the below steps. here as I have a 64-bit OS machine, I have downloaded a 64-bit setup file.

  1. Visit to the site, check latest nodejs version and download nodejs necessary binary files (In our example, download the 64-bit setup files) and wait for complete.
  2. After successfully downloaded ,double click on the downloaded .msi file to start the installation. Click the Run button in the first screen to begin the installation.
  3. The NodeJS setup window will appear, click the "Next" button to continue with the installation.
    install node js windows

    latest nodejs version

  4. The license window will appear ,accept the license agreement and click on the Next button.
    install nodejs ubuntu
  5. The next screen is destination window where installation path is mentioned, as we are new to this we will note change the destination path. Click on the Next button to proceed ahead with the installation.
    install nodejs raspberry
  6. In the custom setup winodw, accept the default components and click on the next button.
    install nodejs
  7. The ready to install window will appear , click on the 'Instll' button.
    npm install
  8. The installation process will continue wait for complete , after completing the process the Complete Window will appear. Click on the Finish button and you are now done with.
    download nodejs

Verify NodeJS Installation.

To see if the NodeJS is installed, open the Windows Command Prompt, Powershell, or a similar command-line tool, and type node -v. This should print a version number, so you’ll see something like this v0.10.35.

node js version check

node js version check

You may get below error when you execute above command sometimes. Because the path of NodeJs not updated in the environment variables with NodeJS installation due to some security issues, usually the nodejs Installation process updates the environment variales in a system.

node is not recognized as an internal or external command.

In such cases you need to do it manually, the below steps guide how to add or update environment variable for NodeJS.

  • Right click on the window icon of your system.
  • Then click on to the System.
  • The Settings window will be opened, on the right side panel find the Advanced system settings and click on it.
  • On the system properties window, click on the environment variables button.
  • You will get list of variables (User and System) on the in the Environment variables window, select the Path variable in system variable category and click on the edit button.
  • The Edit environment variable window will be appeared. Here you can enter the path of the folder where nodejs is installed.
  • Go to C drive then Program File then find nodejs inside it.
  • Open the nodejs folder, then copy the path of the folder from address bar. The folder path should be like below.
     C:\Program Files\nodejs  
    
  • Click on the New button, you will get mouse focuse in gird row. past the copied path.
  • then click OK->OK->OK
  • You are done with environment variable update. now check again the nodejs version in command prompt.
  • This time you will get the current version of nodejs, if you are still getting same message you need to talk with system administration

Summary

Here in the above, we saw how to download the latest nodejs version and install node js windows,also saw the corrent site to download nodejs. I hope you have enjoyed it a lot.