Composer require 包时报错, 如何解决?
我用的是国内源, 报如下错误:
The "https://packagist.laravel-china.org/packag..." file could not be downloaded: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
https://packagist.laravel-china.org could not be fully loaded, package information was loaded from the local cache and may be out of date
切换回了官方源,还是报同样的错误:
The "https://packagist.org/packages.json" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
https://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
推荐文章: