开发者社区 问答 正文

php环境搭建报Content-Length mismatch

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

展开
收起
olstill 2019-05-17 10:41:49 5170 分享 版权
1 条回答
写回答
取消 提交回答
  • 将composer的资源定位为国内镜像,使用国内镜像下载。
    然后在使用命令

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

    2019-07-17 23:35:35
    赞同 展开评论
问答分类:
PHP
问答标签:
问答地址: