安装scoop避坑

原创
2024/10/16 18:29
阅读数 68

1、解决权限问题

powershell必须以管理员运行,执行下面命令

set-executionpolicy remotesigned -scope currentuser

选择A选项

2、先下载安装脚本

下载时,可能出现无法解析 raw.githubusercontent.com

在C:\Windows\System32\drivers\etc\hosts文件中添加一行

199.232.68.133 raw.githubusercontent.com

下载脚本

irm get.scoop.sh -outfile 'install.ps1'

3、执行脚本

 .\install.ps1 -ScoopDir 'D:\Applications\Scoop' -ScoopGlobalDir 'D:\GlobalScoopApps' -NoProxy

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

执行下面一句

.\install.ps1 -ScoopDir 'D:\Applications\Scoop' -ScoopGlobalDir 'D:\GlobalScoopApps' -NoProxy  -RunAsAdmin

 

 

展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
0 评论
0 收藏
0
分享
返回顶部
顶部