欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

composer content-length mismatch received bytes out of the expected 有大用

php环境搭建报Content-Length mismatch

 olstill 2019-05-17 10:41:49  83

image
搭建PHP环境时,报
[ComposerDownloaderTransportException] 
Content-Length mismatch, received 348704 bytes out of the expected 1017196
的错误,该如何排查解决?

 
分享到  
全部回答(1)
  • 宋淑婷
    2019-07-17 23:35:35

    将composer的资源定位为国内镜像,使用国内镜像下载。 
    然后在使用命令

    composer global require "laravel/installer"
    安装便成功了。 
    PS:使用win10系统,bash,时间定位:2017-8-8,laravel出到5.4版本

来自  https://developer.aliyun.com/ask/135677?spm=a2c6h.13159736



composer错误_Content-Length mismatch, received 84697 bytes out of the expected..

时间:2017-12-2作者:平头哥

使用composer下载源码出现错误

[ComposerDownloaderTransportException]                                  
  Content-Length mismatch, received 84697 bytes out of the expected 355473 

解决办法:更换源,改到国内来

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

 

来自  http://www.ershoufangbigdata.com/?p=32807

https://www.cnblogs.com/wt645631686/p/8308706.html

普通分类: