php - 需要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
解决方案
推荐阅读
- php - 有没有办法在 OctoberCms 中设置特定 CMS 页面的用户权限?
- python - 如何创建同一类的多个对象,每个对象内部都有一个无限循环
- python - 如何将提交的日期规范化为 UTC 格式 (2019-10-29T02:20:30.45Z) [这不是重复的问题,请阅读整个问题一次]
- c++ - Why do semi-colons in c++ seem to implicitly handle errors? [tldr: they don't]
- python - 我可以在一个函数中调用当前时间两次吗?
- regex - 正则表达式匹配自定义密钥对在 linux 中不起作用
- listview - 如何在 Flutter 中制作动态页面 Item?
- vba - 是否有 View.GetOutline() 的替代方法可以提供更好的轮廓?
- c# - 组合框在搜索文本时选择第一项
- java - 如何设计一个浮动按钮,如附图所示