I installed composer global at a Webhosting-Server. Now I can call it via
composer
But if I want to install something I get a memory limit er
In my case, I had a VM and increasing the memory lmit of my VM solved my problem