I currently set up a Drupal 8 website using Composer like described here. Drupal is already running. Now I want to add Bootstrap theme by calling
composer require drupal/bootstrap
But I get
Using version ^7.3 for drupal/bootstrap ./composer.json has been updated DrupalProject\composer\ScriptHandler::checkComposerVersion 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 515907584) (tried to allocate 20480 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Pool.php on line 221
Fatal error: Out of memory (allocated 515907584) (tried to allocate 20480 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Pool.php on line 221
Im using Composer version 1.2.1 2016-09-12 11:27:19
composer update
, which per the composer maintainer's words should only be used on non-production systems. This is really annoying and limiting for me personally because I like to run a build process on jenkins and this makes the jenkins build agent require some ridiculous amount of memory (> 1gb) to docomposer update
. This could be on-topic if the question asked about how to store composer.install for a Drupal site without using composer from scratch.composer install
, but even then it doesn't install. So, I think, this is not alone a problem with theupdate
command, but withinstall
as well