使用composer下载源码出现错误
[ComposerDownloaderTransportException] Content-Length mismatch, received 84697 bytes out of the expected 355473
解决办法:更换源,改到国内来
composer config repo.packagist composer https://packagist.phpcomposer.com
欢迎各位兄弟 发布技术文章
这里的技术是共享的
搭建PHP环境时,报
[ComposerDownloaderTransportException]
Content-Length mismatch, received 348704 bytes out of the expected 1017196
的错误,该如何排查解决?
将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下载源码出现错误
[ComposerDownloaderTransportException] Content-Length mismatch, received 84697 bytes out of the expected 355473
解决办法:更换源,改到国内来
composer config repo.packagist composer https://packagist.phpcomposer.com