安装Shorebird时因为 unable to access https://github.com 而安装失败

242 阅读1分钟

基于官网的安装手册,安装Shorebird,Windows环境下,在执行

iwr -UseBasicParsing 'https://raw.githubusercontent.com/shorebirdtech/install/main/install.ps1'|iex

时报如下错误:

image.png

解决办法: 打开“网络和Internet > 代理”

image.png

点击“编辑”

记录代理IP地址 127.0.0.1 所对应的端口号,假设该端口号是“1234”。

打开命令提示符 依次执行以下命令:

git config --global http.proxy 127.0.0.1:1234
git config --global https.proxy 127.0.0.1:1234

然后重新执行Shorebird安装命令即可。

image.png

如果下载过程中报一下错误:

image.png

可能是因为网络原因。 可使用以下方式优化: 增大下载缓存

git config --global http.postBuffer 524288000

配置git的最低速和最低速时间

git config --global http.lowSpeedLimit 0

git config --global http.lowSpeedTime 999999

下载成功后的截图

image.png