Issue
Getting this error on "composer require drupal/module-name". I want to install a module on my drupal site but it always returns me this error.
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
Solution
Virtual memory Error on composer run Solution (Windows)
- Download PHP 7.3+ and place on a folder on c drive
- Change the environment variable path of PHP to new php
- Set the memory limit to -1 in PHP 7.3+ ini file Also uncomment the required extensions.
- Run Composer
Answered By - Someshver Thakur
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.