scoop设置代理 , 解决”scoop fatal: unable to access“问题

报错提示

Updating Scoop...
fatal: unable to access 'https://github.com/ScoopInstaller/Scoop/': Failed to connect to github.com port 443 after 21091 ms: Couldn't connect to server
Remove-Item : 找不到路径“C:\Users\kai\scoop\apps\scoop\new”,因为该路径不存在。
所在位置 C:\Users\kai\scoop\apps\scoop\current\libexec\scoop-update.ps1:79 字符: 13
+             Remove-Item $newdir -Force -Recurse
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\kai\scoop\apps\scoop\new:String) [Remove-Item], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand

设置scoop 代理

scoop config proxy 127.0.0.1:7890

posted @ 2024-01-18 17:54  夏目贵志ㅤ  阅读(284)  评论(0编辑  收藏  举报