1. 使用curl命令

注意:有人说是连不上github,我这边目前githubu能正常访问

2. 解决方案

 2.1 打开网址: https://www.ipaddress.com/

2.2 将上一步解析出来的ip写入hosts文件

mac中hosts位置:sudo vi /etc/hosts


185.199.108.133 raw.githubusercontent.com
185.199.109.133 raw.githubusercontent.com
185.199.110.133 raw.githubusercontent.com
185.199.111.133 raw.githubusercontent.com
 

2.3. 再次执行相关命令,检查该问题是否解决

Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐