Hi,
I have installed Flarum successfully on LEMP (Vultr - PHP7.3-FPM - Ubuntu 18.04.) Everything is working well. But when I try to install any extension by using composer, below error occurred.
root@Flarum:/var/www/html/flarum# composer require flagrow/bazaar
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Using version ^0.3.10 for flagrow/bazaar
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
mmap() failed: [12] Cannot allocate memory
mmap() failed: [12] Cannot allocate memory
PHP Fatal error: Out of memory (allocated 778051584) (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleWatchGraph.php on line 52
Fatal error: Out of memory (allocated 778051584) (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleWatchGraph.php on line 52
How I install it: https://wmaraci.com/forum/sunucu-yonetimi/flarum-kurulumu-detayli-rehber-ucretsiz-ssl-2019-a-581093.html (It is Turkish but you can understand the main commands i think.)