安装 scoop 失败:“默认情况下禁用以管理员身份运行安装程序,请参阅 https://github.com/ScoopInstaller/Install#for-admin”

Kab*_*ori 6 failed-installation scoop-installer

每当我通过 Powershell 运行命令行在 Windows 上安装 scoop 时,它只会显示“默认情况下禁用以管理员身份运行安装程序,请参阅https://github.com/ScoopInstaller/Install#for-admin了解详细信息。”

我尝试以管理员身份运行 Powershell 和“-RunAsAdmin”选项,但似乎没有一个对我有用。

Bru*_*ego 18

您需要以管理员身份运行该命令。尝试以下命令:

iex "& {$(irm get.scoop.sh)} -RunAsAdmin"
Run Code Online (Sandbox Code Playgroud)