Content-Length mismatch, received 50137 bytes out of the expected 298347

来源:csdn博客 分类: 文章浏览史 发布时间:2020-09-14 16:56:12 最后更新:2020-09-14 浏览:117
转载声明:
本文为摘录自“csdn博客”,版权归原作者所有。
温馨提示:
为了更好的体验,请点击原文链接进行浏览
摘录时间:
2020-09-14 16:56:12

Content-Length mismatch, received 50137 bytes out of the expected 298347

问题

下载composer包报错

composer require 包

[Composer\Downloader\TransportException]
Content-Length mismatch, received 50137 bytes out of the expected 298347

原因

composer 下载缓慢,需要使用国内镜像

解决方法

使用国内镜像

composer config -g repo.packagist composer https://packagist.phpcomposer.com

php技术微信