Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Composer hangs on "Resolving dependencies through SAT" on 4.2

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.

like image 389
Sabrina Leggett Avatar asked Jun 14 '16 17:06

Sabrina Leggett


1 Answers

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!
like image 95
Sabrina Leggett Avatar answered Nov 13 '22 03:11

Sabrina Leggett