close

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

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Composer require runs out of memory. PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted in php. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

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

Today I get the following error Composer require runs out of memory. PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted in php.

How To Solve Composer require runs out of memory. PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted Error ?

  1. How To Solve Composer require runs out of memory. PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted Error ?

    To Solve Composer require runs out of memory. PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted Error Just set the memory_limit specifying the full route of your composer.phar file and update, in my case with the command:

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

    To Solve Composer require runs out of memory. PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted Error Just set the memory_limit specifying the full route of your composer.phar file and update, in my case with the command:

Solution 1

In my case I was trying to require this package, and I was getting the PHP Fatal error: Allowed memory size of.

I found it easy to run like this and you don’t have to update the PHP INI file.

example: COMPOSER_MEMORY_LIMIT=-1 composer require huddledigital/zendesk-laravel

Hope this help someone.

Solution 2

Just set the memory_limit specifying the full route of your composer.phar file and update, in my case with the command:

php -d memory_limit=-1 C:/wamp64/composer.phar update

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read

Leave a Comment