解决GitHub的raw.githubusercontent.com无法连接问题

今日克隆vue-element-admin项目,下包环节时报错:

error An unexpected error occurred: "https://raw.githubusercontent.com/sohee-lee
7/Squire/b1e0e1031fa18912d233c204cbe7c7fae4a42621/package.json: getaddrinfo ENOE
NT raw.githubusercontent.com".

根据网上提供的资料,都说Git没配置,镜像源的问题。站长都尝试了无法解决,真正的原因是因为 raw.githubusercontent.com DNS被污染了,导致无法链接,解决方案也很简单,配置本地的hosts即可,Windows/Linux 都适合

站长亲测

151.101.76.133 raw.githubusercontent.com

网友提供

52.74.223.119 github.com
192.30.253.119 gist.github.com
54.169.195.247 api.github.com
185.199.111.153 assets-cdn.github.com
151.101.108.133 user-images.githubusercontent.com
151.101.76.133 gist.githubusercontent.com
151.101.76.133 cloud.githubusercontent.com
151.101.76.133 camo.githubusercontent.com
151.101.76.133 avatars0.githubusercontent.com
151.101.76.133 avatars1.githubusercontent.com
151.101.76.133 avatars2.githubusercontent.com
151.101.76.133 avatars3.githubusercontent.com
151.101.76.133 avatars4.githubusercontent.com
151.101.76.133 avatars5.githubusercontent.com
151.101.76.133 avatars6.githubusercontent.com
151.101.76.133 avatars7.githubusercontent.com
151.101.76.133 avatars8.githubusercontent.com

最后不得不吐槽,X朝的网络也是挺操蛋了

人已赞赏
其它

使用nrm快速切换npm源

2020-10-27 22:27:21

其它

Ubuntu中apt与apt-get命令的区别

2020-10-27 22:40:45

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索