Allowed memory size of 1610612736 bytes exhausted (tried to allocate 40 bytes) in phar:///opt/cpanel/composer/bin/composer/src/Composer/DependencyResolver/RuleSetGenerator.php on line 129

PHP
export COMPOSER_MEMORY_LIMIT=-1
Source

Also in PHP: