laravel 6

Solve PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted while install package in Laravel 6

pengalaman saya saat mau instal package punyanya maatwebsite excel untuk aplikasi laravel terjadi 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 220

kemudian setelah browsing saya menemukan cara untuk mengatasi hal tersebut dengan menambahkan command COMPOSER_MEMORY_LIMIT=-1 di ikut dengan perintah untuk download package. seperti contoh berikut

COMPOSER_MEMORY_LIMIT=-1 composer require maatwebsite/excel

dan akhirnya berhasil.

tested by me

Post Author: @danangnurfauzi

Website Developper. CodeIgniter Framewok. Wordpress Enthusiast. Laravel Framework

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.