Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm just getting started with Drupal and how to add themes and modules. I've used composer to download a couple of modules and themes. However, when I try to intall Bootstrap that way, I just get an empty folder with a readme file that says
"This branch currently only exists to help postpone issues for alater date in the issue queue. Please use 7.x-3.x-dev instead."
See my command line composer command:
07:28:27 ~/Sites/drupal8$ composer require drupal/bootstrap
Using version 4.x-dev for drupal/bootstrap
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
> Drupal\Core\Composer\Composer::preAutoloadDump
> Drupal\Core\Composer\Composer::ensureHtaccess
07:37:49 ~/Sites/drupal8$
Comments
Comment #2
markhalliwellThe 8.x-4.x and 7.x-4.x branches are currently just placeholder branches for this project's issue queue and the coming Bootstrap 4 integration (which is what the message says...)
Currently this project does not have composer support (it's in the queue, but very low priority). Instead, you should simply specify a specific branch or, in reality, an actual release version when adding this project to your composer.json file (as per the instructions).
Comment #3
stpaultim CreditAttribution: stpaultim as a volunteer commentedThanks. This composer stuff is all still pretty new to me. With your help and the linked documentation, I was able to get composer to download the full theme by modifying my composer request to:
composer require drupal/bootstrap:3.0-rc2
I added the version number of latest version of Bootstrap (removing the "8.x-")
Comment #4
estoyausenteYe, composer doesn't recognize automatically the version that you need but you can add it to composer setting the version manually.
This is my require line and work like a charm:
Comment #5
Greg Sims CreditAttribution: Greg Sims as a volunteer commentedAt the time of this writing, Bootstrap does not support install with composer. Please also note the following:
This can cost you some time if you are not aware of this.