DEV Community

TRUNG VU
TRUNG VU

Posted on

2 1

How to handle out of memory errors when running composer

Alt Text

Just set the memory_limit specifying the full route of your composer.phar file and update if you got the out of memory error when running composer require.

php -d memory_limit=-1 [composer_phar_file_path] update
Enter fullscreen mode Exit fullscreen mode

I hope it can help you :)

Top comments (1)

Collapse
 
sivabalan02 profile image
Sivabalan

setting memory_limit to -1 is not good pratice

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay