作曲者挂在“通过SAT解决依赖性"上.在4.2 [英] Composer hangs on "Resolving dependencies through SAT" on 4.2

查看:437
本文介绍了作曲者挂在“通过SAT解决依赖性"上.在4.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试过的事情:

  • 删除Laravel(版本4.2.*)以外的所有内容-可以完成,但仍然挂起5分钟左右
  • 更新作曲家
  • 删除/供应商
  • 进行干净的Laravel 4.2安装(挂起大约3分钟)
  • 进行干净的Laravel 5安装(完全不会挂起)
  • 完全关闭xdebug(似乎没有什么作用)

使用我的所有软件包,我都已经看到composer完整了,但是只有当我将其整夜运行时才看到.我根本无法部署伪造,因为它超时了!这只是在大约两周前才开始发生.

With all my packages, I've seen composer complete but only when I left it running overnight. I can't deploy to forge at all because it times out! This only started happening two or so weeks ago.

推荐答案

对于所有寻求答案的人……这是提高性能的原因:

For all looking for an answer...here's what helped increase performance:

  1. 提交composer.lock :如果您尚未执行此操作,则可以运行'composer 更新"在一台计算机上,然后提交您的锁定文件,然后运行 在另一台计算机上"composer install".这节省了我们的部署过程!
  2. 通常将版本声明为 尽可能明确地显示.
  1. Commit composer.lock: if you're not doing this already you can run 'composer update' on one machine and then commit your lock file then run 'composer install' on each other machine. This saved our deployment process!
  2. Generally declare versions as explicitly as possible.

和/或

  1. 更新您的Laravel版本!

这篇关于作曲者挂在“通过SAT解决依赖性"上.在4.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆