以管理员身份打开 PowerShell
执行以下命令
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
npm install -g npm-windows-upgrade
npm-windows-upgrade
以管理员身份打开 PowerShell
执行以下命令
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
npm install -g npm-windows-upgrade
npm-windows-upgrade
转载于:https://my.oschina.net/u/3117745/blog/909401