简体   繁体   English

运行“composer update”时出错。 Windows / Vagrant / Laravel Homestead

[英]Error when run “composer update”. Windows / Vagrant / Laravel Homestead

Installed stack: Windows 7 64x / Vagrant / Oracle VM Box / Laravel Homestead. 已安装的堆栈:Windows 7 64x / Vagrant / Oracle VM Box / Laravel Homestead。

Mapping works, laravel's site's works. 绘图工作,laravel的网站的作品。 But when I run command: "composer update" - I get error message: 但当我运行命令:“composer update” - 我收到错误消息:

Failed to decode response: zlib_decode(): data error
Retrying with degraded mode, check https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode for more info

PS I have done: PS我做了:

  • Disable windows defender 禁用Windows防御者
  • Turn off firewall 关闭防火墙
  • Run composer clear cache 运行composer clear cache
  • Run composer diagnose - everything is ok 运行作曲家诊断 - 一切正常
  • php.ini - zlib is turned on php.ini - zlib已开启
  • there are no antivirus soft on my system 我的系统上没有防病毒软件

I've been having the same issue! 我一直有同样的问题! What works for me so far is disabling XDebug on the CLI, which at least allows degraded mode to work. 到目前为止对我有用的是在CLI上禁用XDebug,这至少允许降级模式工作。

To make it work, run this command when SSH'd into your Homestead box: 要使其工作,请在SSH进入Homestead框时运行此命令:

$ sudo phpdismod -s cli xdebug

Hope it helps! 希望能帮助到你!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM