windows 安装 Scoop

843 阅读1分钟

官网地址安装地址  : https://scoop.sh/

电脑环境要求: 

    PowerShell 5 和 

.NET Framework 4.5(或更高版本)

查看PowerShell 版本

  1. 打开cmd
  2. 执行 powershell
  3. 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