Skip to main content

Setup Node Js

This guide will walk you through setting up Node Js for the eGrocer website on Windows.

How to setup Node Js on Windows?

  1. If your system already has npm package installed, you can skip this step.

  2. To check whether your system already has npm package installed or not, open Command Prompt and type the following commands:

node -v
npm -v
  1. If npm is already installed, these commands will display the versions:

NPM Version Check

  1. If npm is not installed, download it from the official website: npm

  2. Download the "Recommended For Most Users" option for Windows (x64):

Download NPM

  1. After downloading the installer, follow these steps:

    • Launch the installer
    • Click next
    • Review and accept the End-user License Agreement; click next
    • Select your destination path; click next
    • In custom setup panel, select npm package manager option and click next

    Step 1: NPM Installation Step 1

    Step 2: NPM Installation Step 2

    Step 3: NPM Installation Step 3

    Step 4: NPM Installation Step 4

    Step 5: NPM Installation Step 5

    Step 6: NPM Installation Step 6

  2. Verify npm installation by running the commands mentioned in steps 2 and 3.

  3. Once npm is installed, you can create a new Next.js project or install dependencies for an existing project using:

npm install