Update npm on Windows 10

ref:https://stackoverflow.com/a/31520672

Problem: Want to deploy node.js, but npm is too old.

Solution: Run PowerShell as Administrator (search “PowerShell”, right click and select Run as Administrator)

then run below command

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

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

Close Bitnami banner
Bitnami