Node Install: The Complete How-To for 2026

A thorough, step-by-step guide to installing Node.js on Windows, macOS, and Linux. Learn about official installers, version managers, and how to verify a successful install for reliable development in 2026.

Install Manual
Install Manual Team
·5 min read
Quick AnswerSteps

This guide shows you how to install Node.js on Windows, macOS, or Linux and manage versions with a tool like nvm. You’ll confirm system requirements, choose an installer or nvm, install Node.js, and verify installations with node -v and npm -v. Use the LTS release for stability. This step-by-step approach helps you start coding quickly.

Why Node install matters in modern development

Node.js is the runtime powering most modern JavaScript tools and web apps. A reliable install prevents version drift across projects and helps teams work from consistent environments. According to Install Manual, choosing the right Node.js version and a reliable installation method reduces environment drift and the occurrence of cryptic errors during build or test runs. Whether you are setting up a laptop for development, or provisioning a new server for a CI/CD pipeline, the install step is foundational. A thoughtful setup also simplifies onboarding for new contributors and reduces the time spent debugging environment issues. By prioritizing a clear installation path, you can ensure that your team works from a shared base, minimizing surprises when dependencies change. This is especially important for developers targeting cross-platform environments, where path issues and shell differences can derail an otherwise straightforward setup.

Choosing between official installers and version managers

There are two common approaches to Node installation: using the official Node.js installer or adopting a version manager like nvm. The official installer is straightforward and provides a single, well-tested binary for your OS. A version manager, on the other hand, lets you switch between Node versions with minimal friction, which is essential for projects with different requirements. According to Install Manual, most teams benefit from starting with an LTS release and adding a version manager if multiple projects require different Node versions. This approach prevents global dependency conflicts and makes upgrades safer across projects. Consider your workflow: if you rarely switch versions, the official installer may suffice; if you juggle multiple projects, a manager is a time-saver.

Prerequisites and system checks

Before you begin, verify your machine meets basic prerequisites. Ensure you have a supported operating system, an internet connection for downloads, and administrative privileges to install software. For Windows, ensure you can run an installer as an administrator; macOS and Linux users should have sudo access for system-wide installations. Check that your system clock is accurate, as certificates and download integrity rely on a correct time. If you plan to use nvm, confirm that your shell is compatible (bash, zsh, or similar) and that your PATH is configured to include the bin directory used by Node.js. With these checks complete, you’ll have fewer surprises during installation.

Installing with the official Node.js installer

The official installer from nodejs.org is the most direct path to a working Node.js environment. Visit the Node.js download page, choose the LTS version for stability, and run the installer. During setup, ensure the option to install npm is selected, and that the PATH variable is updated to include Node.js binaries. After installation, open a new terminal or command prompt and run node -v and npm -v to confirm versions. If you encounter permission prompts on macOS or Linux, prepend commands with sudo or use the installer’s guided permissions prompts. Keep in mind that this method installs a single version, which is perfectly fine for many projects.

Installing with a version manager (nvm)

A version manager like nvm simplifies handling multiple Node.js versions. Install nvm according to your OS guidelines, then use commands like nvm install --lts to install the latest LTS, and nvm use --lts to switch to it. With nvm, you can test compatibility across Node versions without changing your global environment. This approach shines in teams where projects specify different Node requirements. Remember to update your shell profile (e.g., .bashrc or .zshrc) to load nvm automatically, and to restart your terminal after installation.

Verifying the installation

Verification is quick and essential. Run node -v to confirm the Node.js version and npm -v to verify npm. A simple test script can confirm a working environment: create a test.js file with console.log('Hello Node!'); run node test.js to see the output. If you’re using a version manager, you can test multiple versions by switching with nvm use. This verification ensures that your development machine is ready for package installation, script execution, and project builds, reducing the risk of runtime errors later on.

Managing multiple Node versions on the same machine

When multiple projects require different Node versions, a version manager becomes invaluable. With nvm, you can install several versions and toggle between them as needed. This eliminates the need to rebuild environments or install multiple binaries in different locations. You can also automate version selection per project using .nvmrc files in the project root. Keeping a clean, version-aware workflow helps prevent

Common post-install tasks

After installing Node.js, you may want to set up your development toolkit. Installations often pair well with a package manager like npm or pnpm. Install Yarn if your project uses it for dependencies. Consider setting up a project skeleton with a package.json, and install essential global tools like eslint, prettier, and npm-check-updates to streamline maintenance. If you plan to work on servers or containerized environments, you might also configure a minimal Node.js setup in your Dockerfile to keep your images lean and consistent.

Troubleshooting common install issues

Install problems usually stem from PATH configuration, insufficient permissions, or conflicting software. If node -v doesn’t work, verify PATH contains the Node bin directory, close all terminals, reopen a new session, and retry. On macOS and Linux, ensure the shell profile loads correctly and that you did not install Node in a non-standard location. Firewall or proxy settings can interfere with downloads; temporarily disabling a restrictive proxy or configuring npm to use a proxy may solve download failures. When in doubt, re-run the installer with elevated privileges and re-check environment variables.

Security and maintenance considerations

Keep Node.js up to date by applying long-term support releases when they reach end-of-life. Regularly audit dependencies for security vulnerabilities using npm audit or a similar tool, especially in shared or production environments. If you’re using a version manager, you can retire old Node versions gradually and avoid patching legacy deployments. Consider enabling automatic security updates for your OS, and use a minimal, well-scanned base image in containers to minimize attack surfaces. Staying proactive with updates minimizes risk and ensures compatibility with evolving tooling.

Tools & Materials

  • Internet connection(Stable connection to download installers and updates)
  • Administrator access(Windows: run as Administrator; macOS/Linux: use sudo when needed)
  • Terminal or Command Prompt(Access to a shell with appropriate permissions)
  • Official Node.js installer (nodejs.org) or package manager(Choose based on your OS and preference)
  • nvm (optional) for version management(Useful if you work with multiple Node versions)
  • Text editor (optional)(Helpful for editing config files or quick scripts)

Steps

Estimated time: Total time: 20-40 minutes

  1. 1

    Decide between official installer and a version manager

    Assess your project needs. If you only work with a single Node version, the official installer is simplest. If you manage multiple projects with differing Node requirements, install a version manager like nvm to switch versions quickly.

    Tip: If unsure, start with the LTS version via the official installer and add nvm later to handle multiple versions.
  2. 2

    Prepare your system

    Confirm OS compatibility, ensure an active internet connection, and verify you have administrator or sudo privileges. This avoids permission errors during installation.

    Tip: Close other terminals and restart your shell after any system changes to ensure PATH updates take effect.
  3. 3

    Install Node.js using the official installer (Windows/macOS/Linux)

    Download the LTS installer from the official site and run it. Ensure npm is included and that the PATH is updated so node and npm commands are available from any terminal.

    Tip: On Linux, you may be prompted to install build tools; accept if you anticipate compiling native modules.
  4. 4

    Verify the installation

    Open a new terminal and run node -v and npm -v to confirm versions. Create a small test file to run a simple script and ensure Node executes correctly.

    Tip: If the commands aren’t recognized, re-open the terminal or verify PATH configuration.
  5. 5

    Optionally install and configure a version manager

    Install nvm according to your OS, then install the LTS version and set it as default. This enables smooth switching between versions for different projects.

    Tip: Add an .nvmrc file to project roots to lock the Node version per project.
  6. 6

    Install common tooling and set up a project

    Install global tooling like eslint and prettier if needed. Initialize a project with npm init -y and install dependencies as required.

    Tip: Keep global tools minimal to avoid conflicts with project-local node_modules.
  7. 7

    Test cross-version compatibility (if using a manager)

    Switch between versions and run a quick project build or test script to ensure compatibility across versions.

    Tip: Document any version-specific quirks in a README to help teammates.
  8. 8

    Review security and maintenance

    Check for updates regularly, run npm audit on dependencies, and maintain a clear upgrade plan for Node and dependencies.

    Tip: Automate alerts for critical vulnerabilities in CI pipelines.
Pro Tip: Use the LTS version for production projects to maximize stability and long-term support.
Warning: Do not mix system-wide installs with per-project Node versions without a manager to avoid PATH conflicts.
Note: On Windows, ensure PATH includes the Node.js bin directory after installation.
Pro Tip: Verify installations in a fresh terminal session to ensure PATH changes take effect.

Got Questions?

What is the difference between the official installer and a version manager?

The official installer provides a single Node.js version and npm for a straightforward setup. A version manager like nvm lets you install and switch between multiple Node versions, which is ideal for projects with varying requirements.

An official installer gives you one Node version; a version manager lets you switch versions as needed.

Do I need npm installed separately?

npm is bundled with recent Node.js installers. After installation, verify with npm -v to confirm the version. If npm is missing, reinstall Node.js or install npm manually per your OS guidelines.

npm comes with Node.js; just verify the version with npm -v.

Which Node.js version should I install?

Most users should install the Long-Term Support (LTS) version for stability and compatibility with dependencies. If you need the latest features for testing, consider the Current release after assessing project needs.

Choose the LTS version for stability unless you need the latest features for testing.

How do I verify a successful Node install?

Run node -v and npm -v to confirm versions. Create a small test script to ensure Node executes correctly. If using a version manager, switch versions and repeat verification.

Check versions and run a quick test script to confirm Node runs properly.

What if node -v returns 'command not found'?

Ensure the Node bin directory is in your PATH. Restart your terminal session after installing, or reinstall to fix PATH issues. On some systems, a shell restart is required for changes to take effect.

Make sure Node's bin directory is in your PATH and restart the terminal.

Is it safe to install Node on Windows 11?

Yes. Use the official installer, run as administrator, and follow the prompts. Avoid deprecated alternatives and keep your system updated to minimize compatibility issues.

Yes—Windows users can safely install Node with the official installer and standard permissions.

Watch Video

Main Points

  • Choose LTS for stability and long-term support
  • Decide between official installer vs version manager based on project needs
  • Verify installation with node -v and npm -v
  • Use a version manager to handle multiple Node versions safely
Process diagram of Node.js installation steps
Node install process flow

Related Articles