Igor Simic
1 year ago

Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes)


If you have experienced this error "Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) " by running composer require command, here is the solution.

Actually there is couple things that you can do in this case: change memory_limit in your php.ini file, or change COMPOSER_MEMORY_LIMIT=-1  but the fastest way is just to run this command:
COMPOSER_MEMORY_LIMIT=-1 composer require your/package
and that is it!