1、更新为阿里云源
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
2、更新为中国地区源
composer config -g repo.packagist composer https://packagist.phpcomposer.com
3、恢复默认源
composer config -g --unset repos.packagist
4、更新缓存
composer clearcache