PowerShell 5 和
.NET Framework 4.5(或更高版本)
查看PowerShell 版本
- 打开cmd
- 执行 powershell
- host
执行
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
或
iwr -useb get.scoop.sh | iex
如果遇到
iwr : 未能解析此远程名称: 'raw.githubusercontent.com'
所在位置 行:1 字符: 1
+ iwr -useb get.scoop.sh | iex
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest],WebExce
ption
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
打开电话的etc/hosts 加入 并且保存
1. 先查询出来 raw.githubusercontent.com 的ip
185.199.108.133 raw.githubusercontent.com
如果执行失败就是网络的问题.
执行scoop不报错就OK