pod install 报错:Failed to connect to chromium.googlesource.com port 443: Operation timed out
> Git download
> Git download
$ /usr/bin/git clone https://chromium.googlesource.com/webm/libwebp /var/folders/v2/b70qzxh17zqdw4yw4l53k99w0000gn/T/d20210108-76584-i4kjhe --template= --single-branch --depth 1 --branch v1.1.0
[!] Error installing libwebp
[!] /usr/bin/git clone https://chromium.googlesource.com/webm/libwebp /var/folders/v2/b70qzxh17zqdw4yw4l53k99w0000gn/T/d20210108-76584-i4kjhe --template= --single-branch --depth 1 --branch v1.1.0
Cloning into '/var/folders/v2/b70qzxh17zqdw4yw4l53k99w0000gn/T/d20210108-76584-i4kjhe'...
fatal: unable to access 'https://chromium.googlesource.com/webm/libwebp/': Failed to connect to chromium.googlesource.com port 443: Operation timed out
如果这个方法不行:
使用git config --globalhttp.proxy"localhost:port",设置代理。
port是端口号,根据不同的vpn不一样,我这里使用的是lartern,端口是50321。
可以使用这个解决方案:
git config --global --unset http.proxy
git config --global --unset https.proxy