当报这种https://packgist.laravel-china.org/packages.json 下载失败的错误时。
可以尝试:
全局设置:
compsoer config -g grep.packagist composer https://packagist.laravel-china.org
项目设置
"repositories": { "packagist": { "type": "composer", "url": "https://packagist.laravel-china.org" } }