bower ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/hhurz/tableExport.jquery.plugin.git", exit code of #128 fatal: unable to access 'https://github.com/hhurz/tableExport.jquery.plugin.git/': Failed to connect to github.com port 443: Operation timed out
fatal: unable to access 'https://github.com/hhurz/tableExport.jquery.plugin.git/': Failed to connect to github.com port 443: Operation timed out
使用bower install 安装包的时候总是报错,已经添加github的ip至host 和 使用vpn都没有办法结局
上诉报错就是因为连接不上 github 所导致的。
不清楚 host 修改是否正确,可以使用
curl https://github.com
测试是否成功。如果还是未成功,可以使用
https://github.com/baiyutang/github-ips
中的替换。如果是在 terminal 中,还需要设置 proxy。
对于 Linux&MacOS 来说:
最后测试 proxy 是否成功: