We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies. Learn More
contact@techquestworld.com
+919547614783
Premium Article
Published 6 months ago

Installing Node.js on Windows, macOS & Linux: The Ultimate Step-by-Step Guide

5 min read
649 views
Installing Node.js on Windows, macOS & Linux: The Ultimate Step-by-Step Guide
Photo by Techquestworld

Want to install Node.js on your computer? Here's a simple, step-by-step guide for Windows, macOS and Linux to help you get started easily. Beginner-friendly guide to kickstart your JavaScript backend journey.

🔹 Introduction

If you're beginning your journey into JavaScript backend development or planning to build full-stack applications, Node.js is a must-have on your machine. In this detailed blog, we'll cover how to install Node.js on all major operating systems—Windows, macOS and Linux.

🔹 What is Node.js?

Think of Node.js as a powerful tool that lets you run JavaScript outside the browser, like on your computer or a server. It’s open-source, works on all major platforms and lets developers use JavaScript to build everything from APIs to full backend systems — not just front-end websites.


In simple words:

Node.js = JavaScript + Server Power. 💻⚡


Whether you're building a small app or a massive system, Node.js gives you the flexibility to use one language (JavaScript) for both frontend and backend.

🔹 Install Node.js on Windows

a. Download Node.js

Visit the official Node.js website: https://nodejs.org. You'll find two versions:

• LTS (Long Term Support)

• Current – Includes the latest features


Tip: Choose LTS if you're just getting started or working on production projects.


b. Install the Installer

• Download the .msi file.

• Run the installer with default options.

c. Verify Installation

Open Command Prompt and run:

node -v
npm -v

d. Optional – Use Node Version Manager (nvm-windows)

If you need multiple versions:

• Download nvm-setup.zip from nvm-windows.

• Follow the setup guide and install the desired Node versions via:

nvm install 16.20.0
nvm use 16.20.0

🔹 Install Node.js on macOS

Option 1: Install using Homebrew

a. Open Terminal and run:

brew update
brew install node

b. Verify installation:

node -v
npm -v

Option 2: Using Node Version Manager (nvm)

Install nvm:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

Then:

nvm install --lts
nvm use --lts

NVM lets you switch Node.js versions easily—ideal for developers managing multiple projects.

🔹 Install Node.js on Linux (Ubuntu/Debian-based)

Option 1: Using Package Manager

sudo apt update
sudo apt install nodejs npm

Check installation:

node -v
npm -v

Option 2: Using NodeSource

curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install -y nodejs

Option 3: Using NVM (Recommended)

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

Then:

nvm install 18
nvm use 18

🔹 How to Uninstall Node.js

Windows: Use "Add or Remove Programs".

macOS:

brew uninstall node

Or remove manually from /usr/local/bin/

Linux:

sudo apt remove nodejs npm

🔹 Why Use NVM?

• Easily switch between Node versions

• Keep separate environments per project

• Avoid global dependency conflicts

🔹 Also Read:

• What is Node.js? A Beginner's Complete Guide (2025 Update)

Installing Node.js correctly is the first step toward becoming a successful JavaScript developer. Whether you're coding on Windows, macOS or Linux, the steps are now straightforward. Use the LTS version for stable development and consider using NVM to manage versions efficiently.


With this setup, you're ready to explore the world of backend JavaScript. Build your first CLI tool, REST API or even deploy a serverless function.

👉 Start building with Node.js now! If this guide helped, share it with your peers and explore our other Node.js tutorials.


đź’¬ Comment below: Which OS are you using and what project are you planning to build?

Author
TAPAS SAHOO

Developer by Profession, Techie by Heart

A curious mind with a love for writing and technology, dedicated to simplifying web development and programming topics while keeping up with the ever-changing tech landscape.

Discussion (0)

Replying to
Previous Article
What is Node.js? A Beginner's Complete Guide...

Want to learn Node.js but confused where to start? Here's your 100% beginner friendly guide to under...

Next Article
10 Essential Array Methods Every Node.js Deve...

Learn the 10 most important array methods in Node.js with clear explanations, code samples and best‑...

Related Articles

What is Node.js? A Beginner's Complete Guide (2025 Update)
What is Node.js? A Beginner's Complete Guide (2025...

Want to learn Node.js but confused where to start? Here's your 100% beginner friendly guide to under...

10 Reasons Why Developers Love Node.js
10 Reasons Why Developers Love Node.js

Node.js continues to dominate backend development in 2025. Learn why developers love it through 10 p...

Table of Contents