You can install Node.js on an offline system by downloading the official installer and its dependencies on a connected machine, transferring them with a USB drive, and running the installer locally. The key is to grab the correct architecture build (x64, ARM64, or 32-bit), match the version your project needs, and carry over any native build tools you will need for npm packages that compile C++ code. Nothing about the install itself requires internet access — only the download and any post-install package fetches do.

What You'll Need

  • A second computer with internet access and a USB flash drive (or a way to burn a CD/DVD, or a network share on the same LAN).
  • The exact Node.js version you want. LTS releases are the safest choice for production; Current is fine for testing newer features.
  • Knowledge of the target machine's OS and CPU architecture (Windows 10/11 x64, Windows on ARM, macOS Intel, macOS Apple Silicon, or a specific Linux distro and architecture).
  • Administrator or sudo rights on the offline machine.
  • For Linux: the matching .tar.xz binary archive plus any system libraries the distro may be missing (usually glibc and libstdc++).
  • Optional but recommended: a copy of the npm packages you plan to install, saved as tarballs, so you can npm install from a local folder later.

Step-by-Step

  1. Identify the target system. On the offline machine, note the OS name and version, and the CPU architecture. On Windows, open Settings > System > About and read the "System type" line. On macOS, open the Apple menu > About This Mac. On Linux, run uname -m and cat /etc/os-release. Menu labels can differ slightly by version and region, so look for the equivalent wording if yours is different.
  2. Pick a Node.js version. Go to the official Node.js downloads page on your connected computer. Choose an LTS release unless a specific tool requires a newer or older major version. Write down the exact version number — you will need it to verify the download.
  3. Download the installer for the target platform. Windows: the .msi installer (x64 or ARM64). macOS: the .pkg installer for Intel or Apple Silicon. Linux: the .tar.xz binary archive for your architecture. Only download from the official nodejs.org site — never from a mirror, forum link, or third-party APK-style bundle.
  4. Verify the download. On the same downloads page, copy the SHA256 checksum for your file. On the connected computer, run certutil -hashfile node-vXX.msi SHA256 (Windows) or shasum -a 256 node-vXX.pkg (macOS/Linux) and compare. If the hash does not match, delete the file and download again.
  5. Copy the file to the USB drive. Eject safely, then plug the drive into the offline machine. If the machine has no USB port, burn the file to a disc or copy it over a LAN share.
  6. Run the installer. Windows: double-click the .msi, accept the license, keep the default install path unless you have a reason to change it, and leave the "Add to PATH" option enabled. macOS: double-click the .pkg and follow the prompts; admin credentials are required. Linux: extract the archive with tar -xf node-vXX-linux-x64.tar.xz, move the folder to /usr/local/lib/nodejs, and symlink node and npm into /usr/local/bin.
  7. Confirm the install. Open a fresh terminal or Command Prompt and run node -v and npm -v. Both should print the version numbers you downloaded. If Windows shows "not recognized," close and reopen the terminal — PATH changes only apply to new sessions.
  8. Prepare for offline npm installs (optional). If your project needs packages, on the connected machine run npm pack for each dependency, or use npm install --package-lock-only followed by downloading the tarballs listed in the lockfile. Copy those tarballs over and install with npm install ./package-name-1.0.0.tgz.

Common Mistakes

  • Downloading the wrong architecture — an x64 installer will not run on ARM64 Windows or Apple Silicon, and vice versa.
  • Skipping the checksum. A truncated USB copy is the most common cause of a "corrupt installer" error.
  • Forgetting that PATH changes need a new terminal session on Windows.
  • Installing a Current release when a project's native modules only support the LTS line.
  • Trying to run npm install on the offline machine without pre-downloaded tarballs — it will fail on the first network call.

Tips

  • Keep the installer and checksum together in one folder on the USB drive so you can re-verify later.
  • Use a version manager such as nvm on the connected machine to fetch several Node versions at once, then copy the whole versions folder across.
  • On Linux, install to /usr/local rather than overwriting distro packages, so system updates do not clobber your Node install.
  • Label the USB drive with the Node version and date — offline installs are often repeated months later.

Troubleshooting

If node -v returns "command not found" or "not recognized," the PATH was not updated. Re-run the installer and confirm the "Add to PATH" box is checked, or add the install directory manually through System Properties > Environment Variables on Windows, or your shell profile on macOS/Linux. If the installer refuses to run, check that the file hash matches and that you have admin rights. If npm commands fail with permission errors on Linux or macOS, do not use sudo npm install -g blindly — configure a user-level prefix instead. If native modules fail to build, the machine is missing a compiler toolchain (Visual Studio Build Tools on Windows, Xcode Command Line Tools on macOS, build-essential on Debian-based Linux); copy those installers over the same way. If the USB drive shows files as corrupt, reformat it as exFAT and copy again.

Frequently Asked Questions

Can I install Node.js without any internet at all?

Yes, provided the installer or archive was downloaded elsewhere and transferred. The install step itself makes no network calls.

Does npm work offline?

npm runs offline, but installing packages requires either a local cache, tarballs you copied over, or a private registry reachable on your LAN.

Which Node version should I choose for an offline machine?

Pick the LTS release that matches your project's requirements. Newer Current releases may not be supported by native modules.

Can I copy an installed Node folder from another machine?

On Linux and macOS the binary archive is portable enough to copy, but Windows installs register paths in the registry. Use the official installer on Windows instead.

How do I update Node later without internet?

Repeat the same process: download the new installer on a connected machine, verify the checksum, transfer it, and run it. Uninstall the old version first if the installer asks.