When you try to run composer install
or composer update
, Sometime you get the allowed memory size issue as shown below.

If you update memory_limit to some higher value and if you still get the same error, then you have to update the composer memory limit to -1 (basically unlimited) with the below command and then run normal composer install
or composer update
command.
export COMPOSER_MEMORY_LIMIT=-1

Hopefully this will fix the problem.
Fix “Allowed memory size” issue in Composer