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