安装 composer Laravel 7 Image Intervention 时出现问题

Getting issue when install composer Laravel 7 Image Intervention

我想使用以下命令安装 Laravel 7 Image Intervention

        composer require intervention/image

但是在安装时出现以下三个错误

       1) PHP Fatal error:  Allowed memory size of 1610612736 bytes 
         exhausted (tried to allocate 4096 bytes) 

phar://C:/xampp/htdocs/magento2/composer.phar/src/Composer/DependencyResolver/RuleWatchGraph.php 第 52

        2)Check 
          https://getcomposer.org/doc/articles/troubleshooting.md#memory- 
           limit-errors for more info on how to handle out of memory errors.

        3)Fatal error: Allowed memory size of 1610612736 bytes exhausted 
          (tried to allocate 4096 bytes) in phar://C:/xampp/htdocs/magento2/composer.phar/src/Composer/DependencyResolver/RuleWatchGraph.php on line 52

我不知道为什么会这样?如果有人有想法,请告诉我。 请在这方面帮助我

试着放 memory_limit = -1

在您本地服务器上的 php.ini