Allowed memory size of bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Solver.php

PHP
export COMPOSER_MEMORY_LIMIT=-1Fatal error: Allowed memory size of 1610612736 bytes exhausted

export COMPOSER_MEMORY_LIMIT=-1
and restart composer update

Source

Also in PHP: