Skip to content
Advertisement

PHP Fatal error: Allowed memory size of 1610612736 bytes composer update

I want to run the command composer update to my Laravel project by running the below command.

JavaScript

When I try to run composer require I am getting the out of memory error.

JavaScript

Advertisement

Answer

Run

JavaScript

This will give you the path to composer like “/usr/bin/composer”

Then use that path in the command below to overcome the memory limit using the php flag for no memory limit, like this:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement