在laravel / lumen中添加软件包时,它给出了内存限制错误

时间:2018-10-31 10:27:54

标签: php laravel composer-php lumen

我必须使用以下命令阅读/写/搜索带有流明的电子邮件

composer require webklex/laravel-imap

它给了我下面的错误,

PHP Fatal error:  Allowed memory size of 889192448 bytes exhausted (tried to allocate 8388608 bytes) in phar://C:/Users/hetal.gohel/AppData/Local/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.php on line 126

Fatal error: Allowed memory size of 889192448 bytes exhausted (tried to allocate 8388608 bytes) in phar://C:/Users/hetal.gohel/AppData/Local/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.php on line 126

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

我检查了我的php.ini文件的内存限制,它是2048M,我将其增加了5000M和50000M。但是它不起作用会给我同样的错误。

"require": {
        "php": ">=5.5.9",
        "laravel/lumen-framework": "5.2.*",
        "vlucas/phpdotenv": "~2.2",
        "google/apiclient": "^2.0",
        "maatwebsite/excel": "~2.1.0",
        "googleads/googleads-php-lib": "^32.1",
        "aws/aws-sdk-php-laravel": "~3.0",
        "baopham/dynamodb": "^4.11",
        "laravelista/lumen-vendor-publish": "^2.1",
        "jenssegers/mongodb": "3.2.*" ,
        "php-imap/php-imap": "^3.0"        
    },
    "require-dev": {
        "fzaninotto/faker": "~1.4",
        "phpunit/phpunit": "~5.0",
        "mockery/mockery": "~0.9"
    },

0 个答案:

没有答案