Node.js Setup Guide (Mac & Windows)

Node.js Setup on MacOS

Step 1: Download Node.js

  1. Go to the official Node.js website:
  2. 👉 https://nodejs.org/en
  3. Click on Download Node.js (LTS) version.
  4. (LTS means Long Term Support – best for most users.)


Step 2: Install Node.js

  1. Open the downloaded file and complete the installation steps.
  2. Once installed, Node.js and npm (Node Package Manager) will be available.


Check Installed Versions

Open Terminal.

Type the following commands to verify installation:

node -v
npm -v

This will show you the version numbers of Node.js and npm installed.


Node.js Setup on Windows

Step 1: Download Node.js

  1. Go to:
  2. 👉 https://nodejs.org/en
  3. Click on the Download Node.js (LTS) version.


Step 2: Install Node.js

  1. Run the downloaded setup file and complete the installation.
  2. This installs both Node.js and npm.


Step 3: Check Installed Versions

  1. Open Command Prompt (CMD).
  2. Run these commands:
node -v
npm -v

You should see version numbers if everything was installed correctly.


Install VS Code Editor

To write and run Node.js code smoothly, install Visual Studio Code (VS Code) — a lightweight code editor.

For macOS:

  1. Visit: https://code.visualstudio.com/
  2. Click Download for macOS and follow the install instructions.


For Windows:

  1. Same site: https://code.visualstudio.com/
  2. Click Download for Windows.

Once installed, open VS Code and start coding in JavaScript and Node.js easily.