解决办法:先用 composer diagnose 命令检测然后 composer self-update 更新composer版本最后执行 composer update 或者 composer installcomposer 切换阿里云镜像 用起来还快composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/