Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes)
I have changed memory_limit = 128M to memory_limit = 1G but getting same error
How can fix this plz give me the solution
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/Solver.php on line 223
E:\wamp64\www>php -r "echo ini_get('memory_limit').PHP_EOL;"
1G
if you are using xaamp for laravel here is your solution Bro.
Go to
C:\xampp\php;
directory
and a file with php.ini
it will be a configraution settings file;
Open it with your code editor and search for "memory_limit".
My _memory_limit was set upto 512M, I changed it to "-1".
and my problem was solved.
Really strange. In fact running composer with memory limit disabled as suggested above solved the issue, on the other hand I've been monitoring PHP meanwhile and memory usage went up around 2GiB while running composer require... I'm using composer for almost 2 years now and never seen such thing...