laravel-admin报错The "https://packgist.phpcomposer.com/packages.json" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: ��֪������������� failed to open stream: php_network_ge

Since packagist change due to an error. E.g:

You can change it in the composer.json

"packagist": {
"type": "composer",
"url": "https://packagist.phpcomposer.com"
}
修改成

"packagist": {
"type": "composer",
"url": "https://packagist.laravel-china.org"
}


Original: https: //blog.csdn.net/kangsf1989/article/details/82969407

Guess you like

Origin www.cnblogs.com/victorcode/p/10955131.html