Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://C:/Users/Public/composer.phar/src/Composer/DependencyResolver/Solver.php on line 223

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: