首页 > 解决方案 > 需要mercure时出现内存不足错误

问题描述

我正在尝试安装mercure(https://symfony.com/doc/current/mercure.html)。我收到这个错误。

这是我使用的命令:

composer require symfony/mercure

我什至试过这个:

php -d memory_limit=-1 composer.phar require symfony/mercure我仍然得到同样的错误。

错误信息:

    $ composer require symfony/mercure
PHP Warning: Module 'openssl' already loaded in Unknown on line 0

Warning: Module 'openssl' already loaded in Unknown on line 0
Using version ^0.1.0 for symfony/mercure
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)

VirtualAlloc() failed: [0x00000008] Not enough memory resources are available to process this command.

VirtualFree() failed: [0x000001e7] Attempt to access invalid address.

VirtualAlloc() failed: [0x00000008] Not enough memory resources are available to process this command.

VirtualFree() failed: [0x000001e7] Attempt to access invalid address.

PHP Fatal error: Out of memory (allocated 1570766848) (tried to allocate 4096 bytes) in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/Solver.php on line 223

Fatal error: Out of memory (allocated 1570766848) (tried to allocate 4096 bytes) in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/Solver.php on line 223

标签: phpsymfonycomposer-php

解决方案


推荐阅读