Installation on Windows
The winget package manager, built into recent versions of Windows, installs the latest official LTS with winget install OpenJS.NodeJS.LTS. This command uses the official MSI installer, which places the binaries in C:\Program Files\nodejs and adds them to the PATH. Open a new terminal after installation so that node and npm are recognized.
Managing multiple versions
The classic Unix nvm does not work on Windows. Use fnm (cross-platform, recommended) or nvm-windows, a separate project, instead. These tools let you switch between Node.js versions per project without reinstalling the MSI.
Configuration
The user configuration for npm is stored in %USERPROFILE%\.npmrc. To use pnpm or yarn without a separate installation, enable Corepack with corepack enable. Corepack ships with Node through version 24; starting with Node 25 it is no longer bundled and must be installed separately (for example with npm install --global corepack), so check what the LTS you are targeting provides.
If you compile native modules, install the Visual Studio Build Tools with the "Desktop development with C++" workload, along with Python: node-gyp detects them automatically during compilation. The official installer and winget can offer these dependencies while installing Node.js. Do not use the windows-build-tools package anymore: it has been archived since 2021 and does not work with recent Node versions.