安装vue-devtools时clone github仓库时报错Failed to connect to github.com port 443 after 21122 ms: Timed out

在这里插入图片描述

git clone https://github.com/vuejs/devtools.git d:\plugin\vue-devtools\devtools --progress
fatal: unable to access ‘https://github.com/vuejs/devtools.git/’: Failed to connect to github.com port 443 after 21122 ms: Timed out

解决:打开 https://websites.ipaddress.com网站,查询以下网址对应地IP

1、github.com
2、github.global.ssl.fastly.net

得到ip后,修改hosts(路径:C:\Windows\System32\drivers\etc\hosts)配置

140.82.113.4 github.com
199.232.69.194 github.global.ssl.fastly.net

修改后保存退出,在cmd命令行执行以下命令ipconfig/flushdns
在这里插入图片描述
再去clone 就可以了
参考博文:
优秀1
也很优秀哦
也许我适合你呢
三人行必有我师焉

  • 4
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值