Node.js is the JavaScript interpreter that runs your code outside a browser. It is the number-one prerequisite for the entire ecosystem: without Node, neither npm, nor pnpm, nor bun can work (bun is a partial exception, we will get to that).
Why not use the official installer
The nodejs.org website offers a .msi (Windows) or .pkg (macOS) file. It is simple, but it locks you to a single version. In practice, you will work on multiple projects that require different versions of Node. A version manager lets you switch between versions in one command.
Install fnm (recommended, cross-platform)
fnm (Fast Node Manager) is written in Rust. It is fast and works on Windows, macOS, and Linux.
On macOS / Linux:
On Windows with PowerShell:
Or with Chocolatey:
Or with Scoop:
Once fnm is installed, install the latest LTS version of Node:
Activate it:
Install nvm (macOS / Linux only)
If you prefer nvm on macOS or Linux:
Then:
Verify the installation
After installing, open a new terminal and check:
You should see two version numbers. If the node command is not found, close and reopen your terminal (environment variables do not reload in the current session).
Choosing an LTS version
Node follows a major version release cycle. LTS (Long Term Support) versions receive security patches for 30 months. These are the versions to use in production and for learning.
As of May 2026, the current LTS is Node 22.
Node.js release schedule fnm on GitHubConcepts-ponts
Beaucoup d'outils (Claude Code CLI, pnpm, bun, Next.js) supposent Node installé. Ici on enseigne comment, là on l'utilise.