How to upgrade Node.js and npm in Windows?

power-shell
nodejs
npm
windows

(Dmitry Fedyuk) #1

Upgrade Node.js and npm

Download an installer from here: https://nodejs.org/en/download

Upgrade npm only from the command line

Use PowerShell (you should run it with an Administrator permissions):

Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
npm install -g npm-windows-upgrade
npm-windows-upgrade

stackoverflow.com/a/31520672