您的位置: 首页 > 文章 > Composer update遇到 Content-Length mismatch, received 137675 bytes out of the expected 2367236 Composer update遇到 Content-Length mismatch, received 137675 bytes out of the expected 2367236 分类: 文章 • 2023-04-05 15:46:51 今日composer update,遇到如下报错 解决方案 查看当前镜像源 composer config -l 上图可以看到使用的是国外镜像,此处要使用中国镜像源composer config repo.packagist composer https://mirrors.aliyun.com/composer/ 再次确认镜像源情况 此处黄色警告,提示我composer版本太久,我先更新下composer(若无该提醒此步骤不需要执行) composer self-update -vvv 此时再次update用的是阿里云的镜像云,也无报错信息了