Local or production is this happening?
Sep 29, 2020
6
Level 1
composer PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted
When I try to update or add a new package via composer, I get his error-
composer PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted
Any solution for that?
Level 70
There can be few solutions.
#1. You can set your memory_limit = -1 in your .php.ini file.
#2. During adding or updating composer, you can specify that like this way-
COMPOSER_MEMORY_LIMIT=-1 composer require <package-name>
Find more solution here: https://stackoverflow.com/questions/49212475/composer-require-runs-out-of-memory-php-fatal-error-allowed-memory-size-of-161
6 likes
Please or to participate in this conversation.