Loading... 今日克隆vue-element-admin项目,下包环节时报错: ```shell 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 都适合 **站长亲测** ```python 151.101.76.133 raw.githubusercontent.com ``` **网友提供** ```python 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朝的网络也是挺操蛋了 Last modification:August 29th, 2020 at 06:26 am © 允许规范转载 Support 如果觉得我的文章对你有用,请随意赞赏 ×Close Appreciate the author Sweeping payments Pay by AliPay Pay by WeChat
亲测有效,感谢大佬
客气了