Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
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 ?
Try full path to composer
Once you know path
php -d memory_limit=4G /opt/cpanel/composer/bin/composer update -vvv
You can try below command
COMPOSER_MEMORY_LIMIT=-1 composer update
Hope this will help you!!
This is the way you can write composer command and it will resolve the issue.
php -dmemory_limit=5G composer update
You can try edit value memory_limit in php.ini file.