Question

Running 'composer update' hangs

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?


Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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