1.) Upgrade Node.js:
Download the new version from nodejs.org, then double-click msi-package to install.
2.) Upgrade npm:
Open PowerShell as Administrator and run the following script:
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force npm install -g npm-windows-upgrade npm-windows-upgrade
3.) Check version numbers:
# check Node.js version node -v # check npm version npm -v