Install Node.js on Windows with Cerewro

Node.js is the server-side JavaScript runtime based on Chrome's V8 engine. It is essential for developing web applications, APIs, command-line tools and games. This guide covers every way to install and configure it on Windows.

Installation options

MethodCommandWhen to use
Official installernodejs.orgQuick install on personal PC
wingetwinget install OpenJS.NodeJS.LTSWindows 10/11, automated
Chocolateychoco install nodejs-lts -yCorporate Choco environments
nvm-windowsSee belowMultiple projects, different versions
Scoopscoop install nodejsNo admin permissions needed

Install with nvm-windows (recommended for dev)

1. Install nvm-windows
winget install CoreyButler.NVMforWindows
2. Install Node.js and switch versions
nvm install lts
nvm use lts
nvm install 20.11.0
nvm use 20.11.0
nvm list           # installed versions
nvm list available # all available online

Verify the installation

Check versions
node --version      # v20.11.0
npm --version       # 10.2.4
npx --version       # 10.2.4

Essential global npm tools

ToolInstallPurpose
TypeScriptnpm i -g typescriptStatic typing for JS
nodemonnpm i -g nodemonAuto-restart during dev
pm2npm i -g pm2Production process manager
vitenpm create vite@latestUltra-fast bundler
eslintnpm i -g eslintJavaScript/TypeScript linter
LTS vs Current: Always use the LTS (Long Term Support) version for production. With nvm you can have both installed and switch between them per project.