top
Kickstart the New Year with exciting deals on all courses Use Coupon NY15 Click to Copy

How to Install Node Js on Windows

Node.js is an open-source, cross-platform JavaScript run-time environment that executes JavaScript code outside of a browser. Node.js lets developers use JavaScript to develop wide variety of applications like network applications, command line tools, web api, web applications In this document, we will cover installation procedure of nodejs on windows 10 operating systemPrerequisitesThis guide assumes that you are using Windows 10. Before you begin, you should have a user account with installation privileges and should have unrestricted access to all mentioned web sites in this document.Audience:This document can be referred by anyone who wants to install latest nodejs on windows 10 System requirementsWindows 10 OS4 GB RAM10 GB free space Installation Procedure1. DownloadVisit nodejs download page here     2. Click on windows Installer to download the latest version of node installer.2. Install  1. Click on the downloaded node-vxx.xx.xx.msi ( for example node-v10.15.0.msi) in previous step to start the installation which brings up below screen. Please click Next   2. By clicking next in previous step you will be asked to accept license, please accept by clicking checkbox and click Next 3. Click Next4.Click Next5. Click Install, this may need elevated permissions provided necessary rights requested6. Click Finish3.Testing InstallationOpen command prompt and run below command to test nodenode -v You should see an output like below (Note: Your version may vary depending on your date of installing as nodejs team make an aggressive release but make sure            your node version is > v10.0.0)Open command prompt and run below command to test npmnpm -vYou should see an output like below (Note: Your version may vary depending on your date of installing as nodejs team make an aggressive release but make sure your npm version is  >5 )Uninstall nodejsPress windows + R  to open run and type appwiz.cpl  and press ok.This will open Programs and Features the look for node.jsDouble click node.js or right click and select uninstall which will prompt as below and then choose YesNodejs uninstallation process will initiate and would ask you to authorize the same via user control. Choose Yes, this will take a while and completeRunning the first Hello World applicationOpen any text editor and write the following codeconsole.log("Hello World Node!!")Save the file as helloworld.jsOpen command prompt and navigate to the folder where you save helloworld.js and  run below commandnode helloworld.jsHow it worksnode command line with file name as an argument will load, read, compile and execute the instructions from the file and execute them. Since we have one line of JS code which prints the text “Hello World Node” to console inside helloworld.js file you see the output as shown in above screenshot
Rated 4.5/5 based on 45 customer reviews
Normal Mode Dark Mode

How to Install Node Js on Windows

Susan May
Tutorials
01st Feb, 2019
How to Install Node Js on Windows

Node.js is an open-source, cross-platform JavaScript run-time environment that executes JavaScript code outside of a browser. Node.js lets developers use JavaScript to develop wide variety of applications like network applications, command line tools, web api, web applications 

In this document, we will cover installation procedure of nodejs on windows 10 operating system

Prerequisites

This guide assumes that you are using Windows 10. Before you begin, you should have a user account with installation privileges and should have unrestricted access to all mentioned web sites in this document.

Audience:

This document can be referred by anyone who wants to install latest nodejs on windows 10 

System requirements

  • Windows 10 OS
  • 4 GB RAM
  • 10 GB free space

 Installation Procedure

1. Download

  1. Visit nodejs download page here

     2. Click on windows Installer to download the latest version of node installer.

2. Install

  1. Click on the downloaded node-vxx.xx.xx.msi ( for example node-v10.15.0.msi) in previous step to start the installation which brings up below screen. Please click Next
   
2. By clicking next in previous step you will be asked to accept license, please accept by clicking checkbox and click Next

 3. Click Next

4.Click Next

5. Click Install, this may need elevated permissions provided necessary rights requested


6. Click Finish

3.Testing Installation

  • Open command prompt and run below command to test node
node -v

 You should see an output like below (Note: Your version may vary depending on your date of installing as nodejs team make an aggressive release but make sure            your node version is > v10.0.0)

  • Open command prompt and run below command to test npmnpm -v

You should see an output like below (Note: Your version may vary depending on your date of installing as nodejs team make an aggressive release but make sure your npm version is  >5 )

Uninstall nodejs

  • Press windows + R  to open run and type appwiz.cpl  and press ok.

  • This will open Programs and Features the look for node.js

  • Double click node.js or right click and select uninstall which will prompt as below and then choose Yes

  • Nodejs uninstallation process will initiate and would ask you to authorize the same via user control. Choose Yes, this will take a while and complete

Running the first Hello World application

  • Open any text editor and write the following code
console.log("Hello World Node!!")
  • Save the file as helloworld.js
  • Open command prompt and navigate to the folder where you save helloworld.js and  run below command
    node helloworld.js

How it works

node command line with file name as an argument will load, read, compile and execute the instructions from the file and execute them. Since we have one line of JS code which prints the text “Hello World Node” to console inside helloworld.js file you see the output as shown in above screenshot

Susan

Susan May

Blog Author

Susan is a gamer, internet scholar and an entrepreneur. Being a Big Data and Hadoop developer, speaks at international conferences about Big Data as a key enabler of exploring business insights and economics of services.


Website : https://www.zeolearn.com

Leave a Reply

Your email address will not be published. Required fields are marked *

SUBSCRIBE OUR BLOG

Follow Us On

Share on