报错:Please restart this script from an administrative PowerShell!

问题:

在命令窗口敲 “npm install --global --production windows-build-tools”时报错:Please restart this script from an administrative PowerShell!
Please restart this script from an administrative PowerShell!

解决方法:

1.以管理员身份运行cmd
Please restart this script from an administrative PowerShell!
2.再运行命令“npm install --global --production windows-build-tools”
Please restart this script from an administrative PowerShell!

完成!

相关文章: