Composer hangs on “Resolving dependencies through SAT” on 4.2

你离开我真会死。 提交于 2020-01-02 01:05:12

问题


Things I've tried:

  • Removing everything except for Laravel (version 4.2.*) - This completes but still hangs for around 5 minutes
  • Updating composer
  • Removing /vendor
  • Doing clean Laravel 4.2 install (hangs around 3 minutes)
  • Doing clean Laravel 5 install (doesn't hang at all)
  • Turning off xdebug completely (doesn't seem to make a difference)

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.


回答1:


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

  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.

and/or

  1. update your Laravel version!


来源:https://stackoverflow.com/questions/37818396/composer-hangs-on-resolving-dependencies-through-sat-on-4-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!