執行composer require laravel/ui:^3.0 --dev報錯

懶惰的大叔發表於2021-01-31
PHP Fatal error:  Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleWatchGraph.php on line 52

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

Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out of memory errors.vagrant@homestead:~/Code/Laravel$

執行:composer self-update更新composer版本,如果報錯前面加上sudo
解決了以上報錯。

本作品採用《CC 協議》,轉載必須註明作者和本文連結
懶惰的大叔

相關文章