I got this error when running composer.phar update on my VM:
composer.phar update
PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried t
When using the software Laragon on Windows, the following line helped me requiring a new package without getting the memory error:
php -d memory_limit=-1 "C:\laragon\bin\composer\composer.phar" require /