Thursday, January 6, 2022

[FIXED] how to solve PHP Fatal error: Out of memory, when I try this command "composer require laravel/ui" for auth file.?

Issue

I try memory_limit=-1 or 526M or 1000M, but showing same error repeated.Please help me!!!!

D:\xampp\htdocs\elevenMedia>composer require laravel/ui Using version ^2.0 for laravel/ui ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev)

VirtualAlloc() failed: [0x00000008] Not enough storage is available to process t his command.

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

VirtualAlloc() failed: [0x00000008] Not enough storage is available to process t his command.

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

PHP Fatal error: Out of memory (allocated 908066816) (tried to allocate 4096 by tes) in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Depen dencyResolver/Solver.php on line 223

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


Solution

You can try installing this package that enables parallelization of the downloads.

composer global require hirak/prestissimo

Also when running your composer command use the -vvv flag if you are running into issues.

  composer require laravel/ui -vvv


Answered By - Kurt Friars

No comments:

Post a Comment

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