To update npm on Windows, you can follow the steps below depending on whether you want to:

  • Just update npm
  • Or update Node.js (and npm together)

Update Only npm on Windows

Using npm itself:

Open Command Prompt or PowerShell and run:

npm install -g npm@latest

This installs the latest version of npm globally.

Verify the update:

npm -v

Update Node.js (and npm automatically)

New Node.js versions usually include an updated version of npm.

Option 1: Use the Official Installer

  1. Go to: Node.JS
  2. Download the Latest LTS (recommended) or Current version for Windows
  3. Run the installer and follow the prompts — it will update both Node.js and npm

Verify:

node -v
npm -v

Bonus: Use Node Version Manager for Windows (Optional)

If you regularly switch Node.js versions:

-> Install nvm-windows

Then you can:

nvm install latest
nvm use latest

Need Help With Node Development?

Work with our skilled Node developers to accelerate your project and boost its performance.

Hire Node.js Developers

Support On Demand!

Related Q&A