M
M
Maxim2018-06-18 22:22:39
Composer
Maxim, 2018-06-18 22:22:39

Composer How to fix memory limit?

Hello! I have a problem with composer. Gives a memory limit. I increased the limit in all init files, but the composer still outputs 128M. What to do?

Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 268435464 bytes) in phar:///Users/maksimvorozcov/Web/eventdance/composer.phar/src/Composer/DependencyResolver/RuleSet.php on line 83
Check https: //getcomposer.org/doc/articles/troubleshooti... for more info on how to handle out of memory errors.MBP-Maksim:eventdance maksimvorozcov$ php -d memory_limit=-1 composer.phar all

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
latteo, 2018-06-19
@myks92

In all init files I increased the limit, but the composer still issues 128M

I hope all the same we are talking about ini files.
Looks like they didn't guess the location.
I also have several versions of php on a PC, and which one started I look through the process explorer (win)
Well, as it were, the question itself contains the answer, run with an explicit path to php and the parameter memory_limit = -1

R
Roman, 2020-12-11
@Tahiaji

COMPOSER_MEMORY_LIMIT=-1 composer install

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question