HI! When I'm trying to run the "php please update:addons" command either to add OAuth support or simply an add-on I get the following error:

Cannot create cache directory /var/www/example.com/html/statamic/statamic/../local/composer/cache/repo/https---repo.packagist.org/,
 or directory is not writable. Proceeding without cache
Cannot create cache directory /var/www/example.com/html/statamic/statamic/../local/composer/cache/files/,
 or directory is not writable. Proceeding without cache
Loading composer repositories with package information
Updating dependencies

mmap() failed: [12] Cannot allocate memory

mmap() failed: [12] Cannot allocate memory

mmap() failed: [12] Cannot allocate memory
PHP Fatal error:  Out of memory (allocated 766517248) 
(tried to allocate 67108872 bytes) in
phar:///var/www/example.com/html/statamic/statamic/composer.phar/src/Composer/DependencyResolver/RuleSet.php on line 83

The actual composer file varies but even by increasing the php max memory in php.ini I still get the error.

php -r "echo ini_get('memory_limit').PHP_EOL;"
1024M

How can I solve?