LMSouq
php-dev Open

Composer require runs out of memory. PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted

BR
Brian Chen
1 month ago
3 views
Problem Description
I am trying to add HWIOAuthBundle to my project by running the below command. composer require hwi/oauth-bundle php-http/guzzle6-adapter php-http/httplug-bundle HWIOAuthBundle github: https://github.com/hwi/HWIOAuthBundle When I try to run composer require I am getting the out of memory error. > Using version ^0.6.0@dev for hwi/oauth-bundle Using version ^1.2@dev > for php-http/guzzle6-adapter Using version ^1.10@dev for > php-http/httplug-bundle ./composer.json has been updated Loading > composer repositories with package information Updating dependencies > (including require-dev) > PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted > (tried to allocate 67108864 bytes) in > phar:///usr/local/Cellar/composer/1.4.2/libexec/composer.phar/src/Composer/DependencyResolver/Solver.php on line 220 > > Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried > to allocate 67108864 bytes) in > phar:///usr/local/Cellar/composer/1.4.2/libexec/composer.phar/src/Composer/DependencyResolver/Solver.php on line 220 I tried setting the memory_limit to 2G in my php.ini file but did not work. I found my php.ini by running `php -i | grep php.ini`

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base