Your complete interactive guide to installing and configuring Node.js from scratch. Choose your OS, follow the steps, and start building.
Select your operating system and follow the tailored installation commands.
Walk through each step interactively. Click a step to expand the details.
Create a new directory and initialize a Node.js project with npm.
Add Express โ the most popular Node.js web framework โ to your project.
Write a minimal HTTP server that listens for requests.
Start the server and open your app in the browser.
Node.js supports multiple package managers. Compare them interactively.
The default package manager bundled with Node.js. Massive registry with 2M+ packages. Zero extra install needed.
Created by Meta for speed and reliability. Supports Plug'n'Play mode for zero-install projects. Great monorepo support.
Performant npm. Uses a content-addressable store that saves disk space and boosts install speed dramatically.
The key libraries, frameworks, and tools every Node.js developer should know about.
Minimal, flexible web framework. The backbone of most Node.js APIs and web applications in production today.
Automatically restarts your server when file changes are detected. A must-have for development workflows.
Elegant MongoDB object modeling. Provides schema-based validation, middleware, and query building for your data.
Loads environment variables from a .env file into process.env. Keep secrets out of your source code.
Delightful JavaScript testing framework. Zero-config setup with built-in coverage, mocking, and snapshot testing.
Production process manager with built-in load balancer, log management, and zero-downtime deployments.
Track your progress. Click each item as you complete it.
Complete these items to be fully ready for Node.js development.
Quick answers to the most frequently asked questions about Node.js setup.
Node.js is the JavaScript runtime that lets you run JavaScript outside a browser. npm (Node Package Manager) is the tool that comes bundled with Node.js for installing, managing, and sharing reusable code packages.
For most users, the LTS (Long Term Support) version is recommended. It receives security updates for 30 months and is the most stable choice. The Current version has the latest features but may have breaking changes.
Use a version manager like nvm (Node Version Manager) on macOS/Linux or nvm-windows on Windows. These tools let you install and switch between multiple Node.js versions effortlessly with commands like nvm use 20.
package.json is your project's manifest file. It records metadata (name, version), lists all dependencies, defines scripts (like start, test, build), and allows anyone to reproduce your project environment with a single install command.
No. Always add node_modules/ to your .gitignore file. The folder can contain thousands of files and is fully reproducible from your lockfile (package-lock.json or yarn.lock) by running the install command.