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

stpaultim created an issue. See original summary.

markhalliwell’s picture

Version: 8.x-4.x-dev » 8.x-3.x-dev
Category: Bug report » Support request
Status: Active » Closed (duplicate)
Related issues: +#2547797: Add composer.json to Bootstrap, +#2554199: Bootstrap 4

The 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).

stpaultim’s picture

Thanks. 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-")

08:04:44 ~/Sites/drupal8$ composer require drupal/bootstrap:3.0-rc2
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Updating drupal/bootstrap (dev-4.x ad64d61 => 3.0.0-rc2)
    Checking out 8.x-3.0-rc2

> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
Writing lock file
Generating autoload files
> Drupal\Core\Composer\Composer::preAutoloadDump
> Drupal\Core\Composer\Composer::ensureHtaccess
estoyausente’s picture

Ye, 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:

"require": {
  "Drupal/bootstrap" : "8.x",
},
Greg Sims’s picture

At the time of this writing, Bootstrap does not support install with composer. Please also note the following:

Drush 9 only supports one install method. It requires that your Drupal 8 site be built with Composer and Drush be listed as a dependency.

This can cost you some time if you are not aware of this.