【问题标题】:Getting issue when install composer Laravel 7 Image Intervention安装 composer Laravel 7 Image Intervention 时出现问题
【发布时间】:2020-10-12 13:01:39
【问题描述】:

我想使用以下命令安装 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

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

【问题讨论】:

    标签: laravel laravel-7


    【解决方案1】:

    试试把memory_limit = -1

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

    【讨论】:

    • 进入 php/ 文件夹我有两个 php.ini 文件,第一个是 php.ini-development,第二个是 php.ini-production。我需要更改哪个文件?
    • 没有名为 php.ini 的文件?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-04-06
    • 1970-01-01
    • 2017-07-13
    • 2014-08-05
    • 2016-07-04
    • 2019-06-26
    • 2013-06-04
    相关资源
    最近更新 更多