How to set composer memory limit when running composer commands


Just add

COMPOSER_MEMORY_LIMIT=-1 

Before any command like

COMPOSER_MEMORY_LIMIT=-1 composer update