如何解决在运行作曲家以安装模块“ VirtualAlloc”时出现错误
在“ composer require drupal / module-name”上出现此错误。 我想在我的drupal网站上安装一个模块,但是它总是返回此错误。
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.
Fatal error: Out of memory (allocated 1711276032) (tried to allocate 4096 bytes) in
phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/Solver.php on
line 223
解决方法
更新您的php.ini文件:memory_limit = XXXM
用您要分配的内存替换XXXM值。
或用-1代替XXXM以取消内存限制条件。
,在作曲家运行解决方案时出现虚拟内存错误(Windows)
- 下载PHP 3+并放置在c驱动器上的文件夹中
- 将PHP的环境变量路径更改为新php
- 在PHP 3+ ini文件中将内存限制设置为-1。也请取消注释所需的扩展名。
- 运行撰写
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。