Currently seeking new career opportunities in web development, particularly with Laravel, Hire Me

Composer Allowed memory size error

David Carr

Development

Running composer to install a new package locally caused the following error:

PHP Fatal error:  Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Solver.php on line 223

The solution was to allow my local setup to consume as much memory as it needs to run:

php -d memory_limit=-1 /usr/local/bin/composer require --dev knuckleswtf/scribe

 

Laravel Modules Your Logo Your Logo Your Logo

Become a sponsor

Help support the blog so that I can continue creating new content!

Sponsor

My Latest Book

Modular Laravel Book - Laravel: The Modular way

Learn how to build modular applications with Laravel Find out more

Subscribe to my newsletter

Subscribe and get my books and product announcements.

Learn Laravel with Laracasts

Faster Laravel Hosting

© 2006 - 2024 DC Blog. All code MIT license. All rights reserved.