Can’t install Socialite on Laravel Homestead: memory limit error

  homestead, laravel, laravel-socialite, out-of-memory

I’m using php 7.4 in Laravel Homestead and edited this file

etc/php/7.4/fpm/php.ini

And set

memory_limit = -1

I reloaded homestead and checked phpinfo() in the HomeController and it’s been changed to -1 but every time I try to install socialite

composer require laravel/socialite

I get

 PHP Fatal error:  Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in 
phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleWatchGraph.php on line 52

Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in 
phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleWatchGraph.php on line 52

Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle 
out of memory errors

enter image description here

enter image description here

Source: Laravel

Leave a Reply