Composer install or update not working

Posted February 28, 2015 5.9k views

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.

1 comment

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.

Submit an Answer
2 answers

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

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:

Hope that this helps!

by Brian Boucheron
One way to guard against out-of-memory errors in applications is to add some swap space to your server. In this guide, we will cover how to add a swap file to an Ubuntu 20.04 server.