当使用WIndowsPowerShell使用命令如下命令安装Scoop时

> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
> Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression

若出现如下报错:

Running the installer as administrator is disabled by default, see https://github.com/ScoopInstaller/Install#for-admin for details.

可以使用以下命令:

iex "& {$(irm get.scoop.sh)} -RunAsAdmin"

解决该问题
2024-04-24T16:46:17.png

最后修改:2024 年 04 月 25 日
如果觉得我的文章对你有用,请随意赞赏