Could not resolve: api.github.com (Timeout while contacting DNS servers) Now trying to download from source

Could not resolve: api.github.com (Timeout while contacting DNS servers) Now trying to download from source

Failed to download hyperf/hyperf-skeleton from dist: curl error 6 while downloading https://api.github.com/repos/hyperf/hyperf-skeleton/zipball/4ceba763054a227d15df51f9f9bd545cc72e1efb: Could not resolve: api.github.com (Timeout while contacting DNS servers)
Now trying to download from source

解决

①先将host 里的 github.com 的注释掉,没有的就不用管

②执行 ping github.com,然后 在 host 文件 加 返回的ip 比如 : 13.229.188.59 github.com

留下回复


Warning: is_dir(): open_basedir restriction in effect. File(/www/wwwroot/my-wordpress/index.php/2021/07/27/could-not-resolve-api-github-com-timeout-while-contacting-dns-servers-now-trying-to-download-from-source/) is not within the allowed path(s): (/www/wwwroot/my-wordpress/:/tmp/) in /www/wwwroot/my-wordpress/wp-content/plugins/matomo/classes/WpMatomo/AIBotTracking.php on line 175