Content-Length mismatch, received 26867 bytes out of the expected 安装composer require doctrine/dbal

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

提前是安装完composer,然后使用composer require doctrine/dbal    安装doctrine/dbal 但是偶尔会报以下类似的错误Content-Length mismatch, received 253135 bytes out of the expected 2196446

  http://repo.packagist.org could not be fully loaded, package information was loa

  ded from the local cache and may be out of date

  这需要把composer镜像地址改为国内的会快很多,执行下面两行命令安装  

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

composer require doctrine/dbal

安装成功报下面类似信息

successfully

php技术微信