Node.jsWeb Development

Installing Node.js JavaScript Engine on Windows

In this web guide, you will learn installing node.js javascript engine on windows. Node.js is very much popular and can be used in many applications like chat system, decentralized currency system etc.

Steps for Installing Node.js JavaScript Engine on Windows

  1. First download Node.js setup file using link https://nodejs.org/en/
  2. Right click on setup file and run it as administrator. Setup window will open as show below Node.js Install
  3. Click on Next button a new window will open that will show you packages as shown below
  4. Click on next and installation process will start.
  5. After completion of installing process you will see window like below 
  6. Node.js installed successfully and now follow the steps to run Node.js in your Windows as show below.

How to run Node.js in your Windows Operating System ?

After installing node.js and before running it in your windows you have to check environment variables for node.js. But by default node js setup file add an environment variable so you can directly run it from any location in your operating system.

Steps to Run Node.js in windows operating system

  1. First you have to create a folder with any name and create a file inside that folder with name hello.js. You can change filename with any name you like.
  2. Add following code in your file                    hello.js
  3. Now open folder you created and Press Shift + Right Click Mouse after that you will option to open command window here. Click to open cmd  Test Node.js
  4. After type command node hello.js then it will show you message Nodejs is installed successfully  as shown 

Why to check environment variables for Node js ?

Node.js will run only using command prompt available in your windows. For running node js using cmd you have to open installation folder where you have installed node and run cmd in that folder using Shift + Right Mouse Click. For running node from any location in your operating system then you have to check environment variables for Node js. By default Node js setup add environment variables but you have to check for it’s availability.

Steps to check environment variables for Node.js

You scroll up to previous steps for running node js in windows if you do not want to check environment variables.

  1. Right click on my computer then open properties after that click on advance system settings for checking environment variables as show below 
  2. A new window will open that will show you advanced system settings just like below
    Advance System Settings
  3. Click on Environment Variables just below Start Up and Recovery as show above then a new window will open
  4. Click on Edit button as shown above for checking Node install folder path exists or not see screenshot below
  5. You can see that npm path is added in environment variables already if it is not mention then just add path C:\Users\<–YOUR OS USERNAME–>\AppData\Roaming\npm click ok button and close your system advance settings after that restart your operating system if you have added new path for node js. npm is related to node js engine.

Tags

Anil Mehra

I am Anil Mehra, a passionate, workaholic and a Full Stack Tech Savvy Programmer with true north towards growth. I have worked on 256 live projects in MNC. I am expertise in the field of Programming, Server Management, SEO, Blogging and SMO...

Related Articles

Leave a Reply

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

Back to top button