PowerShell作为管理员 [英] PowerShell as admin

查看:983
本文介绍了PowerShell作为管理员的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用node_modules在Azure App Service上开发。



  • 操作系统版本:Microsoft Windows NT 10.0.14393.0
  • 节点版本:  7.10.1(32位)

I想要使用原生的npm包,这需要windows-build-tools npm包。当我尝试安装windows-build-tools时,收到以下消息:


开始安装...

请从管理PowerShell重启此脚本!

如果没有管理权限,则无法安装构建工具。

要修复,请右键单击PowerShell并以"管理员"身份运行。


所以,问题是,我如何以管理员身份运行PowerShell?


解决方案

< blockquote>

在Windows机器上,你在搜索框中搜索"PowerShell">>右键单击填充的PowerShell应用程序,然后单击
"以管理员身份运行"。




此外,您可以右键单击包(脚本),然后单击"运行"作为管理员"安装它。


查看此文件

本机模块
部分了解更多详情。


请告诉我们如何获得进一步的帮助。


I develop on Azure App Service with node_modules.

  • OS version: Microsoft Windows NT 10.0.14393.0
  • Node version: 7.10.1 (32 bit)

I want to use native npm package, that require windows-build-tools npm package. When I try to install the windows-build-tools, I get this message:

Starting installation...
Please restart this script from an administrative PowerShell!
The build tools cannot be installed without administrative rights.
To fix, right-click on PowerShell and run "as Administrator".

So, the question is, how can I run PowerShell "as Administrator"?

解决方案

On your Windows machine, you search for "PowerShell" in the search box>> Right click on the PowerShell app that populates and then click "Run as administrator".

Also, you could right click on the package (script), and then click "Run as administrator" to install it.

Checkout this document Native Modules section for more details.

Kindly let us know how that goes for further assistance.


这篇关于PowerShell作为管理员的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆