JavaScript itself doesn't have a standalone download; the runtime ships with every modern browser automatically, while server-side execution requires installing Node.js® for your operating system. Download Node.js only from the official site at nodejs.org/en/download, choosing the LTS line for production work and matching your OS architecture (x64, ARM64, or x86).

The table below maps common intents to the right route before you download anything.

Scenario or Platform Recommended Route Key Requirement
Running JavaScript in a web page No download — use Edge, Chrome, Firefox, or Safari A current browser build; JS is built in
Server-side or CLI scripting (Windows, macOS, Linux) Node.js official installer LTS line unless a project pins a newer Current release
Corporate Windows PC without admin rights Node.js portable ZIP archive Extract and add to PATH manually; no installer
Apple Silicon vs Intel Mac Separate installer package per architecture Match ARM64 (Apple Silicon) or x64 (Intel)
Offline or air-gapped machine Download once on a connected machine, copy the installer Verify the published checksum before transferring

Download and Install Node.js Step by Step

The steps below use Windows 11 as the baseline. Windows 10 uses the same installer and the same prompts; macOS and Linux differences appear after the numbered sequence.

  1. Open the official download page at nodejs.org/en/download in a normal browser session. Avoid search-result ads and third-party "Node installer" mirrors — those frequently bundle adware. Confirm the page shows an LTS recommendation and a Current option before downloading.
  2. Pick the LTS package for your platform. On Windows, the Windows Installer (.msi) is the standard choice; use the ZIP variant only for portable or locked-down setups. On macOS the page offers separate ARM64 and x64 installers — choose ARM64 for Apple Silicon Macs.
  3. Run the installer and accept the license. Keep the default destination unless you have a specific reason to relocate it; then confirm the Node.js runtime, npm, and Add to PATH components are enabled in the feature tree.
  4. On the Tools for Native Modules screen, leave the optional build-tools checkbox clear unless your project compiles native add-ons. Selecting it triggers a multi-gigabyte Visual Studio Build Tools download that blocks the rest of setup for 15–40 minutes on typical connections.
  5. Complete the install and leave Next prompts at defaults. The installer silently writes node, npm, and npx into your user directory and extends PATH.
  6. Open a new terminal — PowerShell, Windows Terminal, or the macOS Terminal — and verify the install:
    node --version
    npm --version
    
    Confirmation: both commands return version strings (for example v22.x.x and 10.x.x). If a "not recognized" error appears, the PATH entry is missing or you're reusing a terminal session opened before installation.
  7. If the version is wrong or the command fails, close every terminal and open a fresh one. Still failing on Windows means the PATH write didn't apply — reinstall and confirm the Add to PATH checkbox was checked.

Offline Installation Path

On machines without internet access, download the matching ZIP archive on a connected computer, verify its SHA-256 hash against the checksum published on the official download page, then copy it over. Extract to a fixed directory such as C:\nodejs and add that folder to System Properties > Environment Variables > Path. Verification is identical to step 6.

Client-Side JavaScript: What "Download" Actually Means

When you visit a page that uses JavaScript, the browser fetches the script files and runs them locally — no installer, no account, no separate download step. That runtime is built into Edge, Chrome, Firefox, and Safari, and it updates with the browser. If a page says "enable JavaScript," the fix is a browser setting (Settings > Privacy, search, and services > Site permissions > JavaScript in Edge, or Settings > Privacy and security > Site settings > JavaScript in Chrome), not a download from a software site.

For developers who need to trigger a file download from JavaScript in the browser, the standard approach creates a Blob and a temporary link:

const blob = new Blob(["Hello from JavaScript"], { type: "text/plain" });
const url = URL.createObjectURL(blob);
const a = document.createElement("a");
a.href = url;
a.download = "greeting.txt";
a.click();
URL.revokeObjectURL(url);

This is a page-side feature; it doesn't require any runtime install beyond the browser itself. Verification: clicking the generated link drops greeting.txt into the browser's download directory with the correct contents.

Version Splits: LTS vs Current, and Architecture Mismatches

Node.js publishes two release lines. LTS (Long Term Support) receives security and stability fixes for an extended window and is the correct default for production, CI pipelines, and shared team environments. Current carries newer V8 and language features but can drop or change APIs between minor releases — use it only when a dependency explicitly requires it. npm updates independently, so a stale npm version doesn't force a runtime reinstall.

Architecture mismatches are the most common silent failure. Installing the x64 package on Apple Silicon runs under Rosetta and works, but native modules compile for the wrong target and either fail at runtime or crawl. Check the reported architecture:

node -p "process.arch"

The output should be arm64 on Apple Silicon, x64 on Intel and standard Windows machines, or arm64 on ARM-based Windows devices (Surface Pro X and similar). Mismatch means uninstall and reinstall the correct package.

Troubleshooting Blocked or Broken Installers

Installer blocked by Windows SmartScreen. Unknown-publisher warnings appear when the download is corrupted mid-transfer. Re-download from nodejs.org, compare the file size against the listing, and then choose More info > Run anyway only after the checksum matches.

MSI fails with error 2502 or 2503. This indicates insufficient permissions writing to the temp directory. Run the installer from an elevated administrator context, or install the ZIP build into a user-writable folder instead.

"Access is denied" on npm global installs. Global package installs write outside the user profile. Prefer project-local installs (npm install <package>) or configure a user-level prefix rather than loosening system permissions.

An old Node version shadows the new one. A version manager such as fnm or nvm-windows, or a leftover PATH entry from a prior install, can take priority. Run where node on Windows or which node on macOS and Linux to see which binary actually resolves.

Third-party mirrors and renamed installers. Any download page that isn't the official Node.js site, MDN, or the official GitHub repository should be treated as untrusted. The official source for the runtime is Node.js downloads; language reference material and browser-side API details live in the MDN JavaScript reference. The Node.js project's mirrored release listing is documented on the official GitHub repository.

macOS and Linux Notes

macOS installers are signed .pkg files; the ARM64 variant is required on Apple Silicon for native performance. Homebrew users can install via brew install node, which manages upgrades cleanly. Linux distributions package Node.js in their default repositories, but those builds often lag several major versions — prefer the official tarball or a version manager on servers where API compatibility matters. Docker images and CI runners ship prebuilt Node installations and usually need no manual download at all.

Post-Install Verification Checklist

  • node --version and npm --version both return strings in a fresh terminal.
  • node -p "process.arch" matches your hardware.
  • A trivial script runs: create hello.js with console.log("ok") and run node hello.js — the terminal prints ok.
  • npm install inside a sample project completes without permission errors.
  • Browser-side JavaScript doesn't need any of the above; test it by opening a page with a working interactive element in your regular browser.

Frequently Asked Questions

Do I need to download JavaScript separately for my browser?

No. JavaScript is integrated into every current browser. Only server-side or command-line use requires Node.js.

Which Node.js version should I install — LTS or Current?

Install the LTS line unless a specific tool or library documents a hard requirement for Current. LTS receives longer security maintenance and is what most production and team environments standardize on.

Can I install Node.js without administrator rights?

Yes. Use the portable ZIP archive and add the extracted folder to your user PATH. This satisfies locked-down corporate machines without requiring elevation.

Does installing Node.js affect JavaScript running in web pages?

No. Browser JavaScript runs in the browser's own engine. The Node.js runtime is separate and only applies to scripts you launch from a terminal or server process.