首页 > 解决方案 > 安装 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

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

标签: laravellaravel-7

解决方案


试放memory_limit = -1

在本地服务器上的 php.ini


推荐阅读