How to Update NMP on Windows?

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:

Copy to clipboard
npm install -g npm@latest

This installs the latest version of npm globally.

Verify the update:

Copy to clipboard
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:

Copy to clipboard
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:

Need Help With Node js Development?

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

Support On Demand!