PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, March 2, 2022

[FIXED] Getting Error on composer run to install modules "VirtualAlloc"

 March 02, 2022     composer-php, drupal, drupal-8, drupal-modules     No comments   

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)

  1. Download PHP 7.3+ and place on a folder on c drive
  2. Change the environment variable path of PHP to new php
  3. Set the memory limit to -1 in PHP 7.3+ ini file Also uncomment the required extensions.
  4. Run Composer


Answered By - Someshver Thakur
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing