Report this

What is the reason for this report?

Composer install or update not working

Posted on February 28, 2015

I am trying to install ratchet library on my droplet 512 mb Ubuntu But whenever i type php ~/composer install or update it always returns: “Nothing to install or update”

I found out that it is because of low memory so i used one of the methods decribed here to add Swap I did that too correctly, but still my composer not installing or updating library.



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!

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.

Hello, all

What I would usually do if I’m getting that error on a Droplet with 1GB of RAM, is to add swap space, that way you would have some extra buffer in case that your RAM is fully exhausted.

You can follow the steps on how to do that here:

https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-20-04

Hope that this helps! Regards, Alex

This question was answered by @techrustcom:

I don’t know how but for some reason it started working automatically. I guess, Swap did the trick but responded late.

View the original comment

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.