Install Node & NPM on Windows (MSI, Chocolatey, Winget, NVM)
Install Node & NPM on Windows (MSI, Chocolatey, Winget, NVM)
Using Official Installer (Recommended)
- Download the installer from nodejs.org
- Run the downloaded
.msifile - Follow the installation wizard
- Make sure “Add to PATH” option is checked
Using Chocolatey
choco install nodejsUsing Winget
winget install OpenJS.NodeJSUsing Node Version Manager (NVM)
NVM for Windows allows you to install and manage multiple Node.js versions:
# Download and install nvm-windows from https://github.com/coreybutler/nvm-windows
nvm install lts
nvm use ltsVerify Installation
Open Command Prompt or PowerShell and run:
node --version
npm --versionIf these commands output the current versions, the installation was successful.
Test Installation
Create a test file to verify Node.js is working:
echo console.log('Node.js is working!') > test.js
node test.jsYou should see “Node.js is working!” printed to the console.
Last updated on