本文由composer教學專欄為大家介紹關於composer 記憶體不足問題,希望對需要的朋友有幫助!
composer 記憶體不足?
#錯誤資訊如下
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 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 Check getcomposer.org/doc/article… for more info on how to handle out of memory errors.
解決方法
1.修改php.ini2.執行composer時暫時放開記憶體限制COMPOSER_MEMORY_LIMIT =-1 composer require "package name"
以上是composer 記憶體不足怎麼辦?兩步驟解決!的詳細內容。更多資訊請關注PHP中文網其他相關文章!