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.
| Method | Command | When to use |
|---|---|---|
| Official installer | nodejs.org | Quick install on personal PC |
| winget | winget install OpenJS.NodeJS.LTS | Windows 10/11, automated |
| Chocolatey | choco install nodejs-lts -y | Corporate Choco environments |
| nvm-windows | See below | Multiple projects, different versions |
| Scoop | scoop install nodejs | No admin permissions needed |
winget install CoreyButler.NVMforWindows
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
node --version # v20.11.0
npm --version # 10.2.4
npx --version # 10.2.4
| Tool | Install | Purpose |
|---|---|---|
| TypeScript | npm i -g typescript | Static typing for JS |
| nodemon | npm i -g nodemon | Auto-restart during dev |
| pm2 | npm i -g pm2 | Production process manager |
| vite | npm create vite@latest | Ultra-fast bundler |
| eslint | npm i -g eslint | JavaScript/TypeScript linter |