laravel——使用composer安装laravel5+时报错content-length mismatch解决方案
来源:互联网 发布:windows to go移动硬盘 编辑:程序博客网 时间:2024/05/19 00:49
laravel——使用composer安装laravel5+时报错content-length mismatch解决方案
在安装好composr后使用命令
composer global require "laravel/installer"
出现了一下报错结果
Changed current directory to C:/Users/myname/AppData/Roaming/Composer [Composer\Downloader\TransportException] Content-Length mismatchrequire [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [<packages>]...
意思就是错了呗翻译是内容长度不匹配。具体原因不得而知,但是找到了反推原因应该就是由于使用国外资源导致下载不下来。
解觉办法是使用命令:
composer config -g repo.packagist composer https://packagist.phpcomposer.com
将composer的资源定位为国内镜像,使用国内镜像下载。
然后在使用命令
composer global require "laravel/installer"
安装便成功了。
PS:使用win10系统,bash,时间定位:2017-8-8,laravel出到5.4版本
祝大家玩的愉快!
阅读全文
1 0
- laravel——使用composer安装laravel5+时报错content-length mismatch解决方案
- laravel 下载,composer Content-Length mismatch
- composer Content-Length mismatch
- laravel 下载,出现错误:composer Content-Length mismatch
- laravel 中 使用 composer 的中国镜像安装时报错(找不到包)
- 使用composer安装Laravel
- 使用composer安装laravel
- 使用Composer安装Laravel
- ::net content-length mismatch
- 使用Composer安装Laravel报错问题
- Windows下使用composer安装Laravel框架卡住,解决方案
- ubuntu 使用composer 安装 laravel
- 使用 Composer 安装 Laravel 框架
- 使用composer安装laravel框架
- Composer&laravel5安装笔记
- laravel5通过composer安装
- composer 安装laravel5
- composer安装及使用composer安装laravel框架
- 事件捕获与冒泡
- Maven第一篇【介绍、安装、结构目录】
- Android Studio的快捷键
- CentOS 下 cp 命令
- HDU-Add More Zero
- laravel——使用composer安装laravel5+时报错content-length mismatch解决方案
- Map集合
- python3.6.1 django1.11.4 初探
- 解决跨域问题
- python数据结构之栈
- ubuntu永久修改主机名
- poj 3517 And Then There Was One(约瑟夫问题)【模板】
- HDU 6090 Rikka with Graph
- Android开发 第二季 第1课 Debug 调试程序