0

enter image description here

I got out of memory error while run "composer update" command, I already check memory_limit and that is 2048 M than also I am getting above error . Does anyone know how can I solve this problem ?

1

This is the way you can write composer command and it will resolve the issue.

php -dmemory_limit=5G composer update

Thanks

|improve this answer|||||
  • i already tried but getting same error – Sanjay Shiyal Oct 1 '19 at 13:54
1

You can try edit value memory_limit in php.ini file.

|improve this answer|||||
  • yes i already check and it is 2048 M than also gettting same error – Sanjay Shiyal Oct 1 '19 at 14:15
  • Try a larger value. – MichaelHa Oct 1 '19 at 14:18
1

Try full path to composer

whereis composer

Once you know path

php -d memory_limit=4G /opt/cpanel/composer/bin/composer update -vvv

|improve this answer|||||
0

You can try below command

COMPOSER_MEMORY_LIMIT=-1 composer update

Hope this will help you!!

|improve this answer|||||
  • yes tried but getting same error – Sanjay Shiyal Oct 1 '19 at 14:31
  • can you check the server space once, that may be making problem for you. – jafar pinjar Oct 1 '19 at 15:05
  • Have same problem. Did you guys fix this? – Gerardo Siano Feb 23 at 22:52

Not the answer you're looking for? Browse other questions tagged or ask your own question.