Running 'composer update' hangs

November 27, 2019 143 views
PHP PHP Frameworks

I’ve got a Laravel based project that I’m updating to version 5.6.
To do so I need to update some PHP packages with composer.

When I run ‘composer update’ after making the changes to composer.json, it just hangs - nothing else prints and the command does not complete.

So far ony my most recent run it’s been 20 mins and no response. Usually it takes under 1 minute, and gives feedback immediately.

I’ve had a similar problem very rarely before where there was not enough memory available and I had to create a swap file. I checked, and the swap file is still there and has 2+ GB of space free.

Any other suggestions?

1 Answer

Oh yeah, I’ve also already run
composer clear-cache

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!