Composer execution killed | Composer killed while updating laravel?

Why we get composer killed message when running composer update or compser install etc.

Composer update or composer install throwing an error something like "killed" showing on screen. It is generally occurs when you don't have enough memory (RAM) on your machine. In this case solution will be to increase your ram and if you are running on your PC or lower ENV server then possible solutions could be as below:

- Stopping some unnecessary processes which will reduce RAM consumption (Don't do this on production server)

- You can introduce swap space which will help you utilize some of your disk space as a supportive RAM

- Increase your RAM to handle the needed space