When I create a Drupal project with

composer create-project --keep-vcs drupal-composer/drupal-project:8.x-dev myD8 --stability dev --no-interaction

it installs

Latest version of drush is installed locally for use at vendor/bin/drush.
Latest version of DrupalConsole is installed locally for use at vendor/bin/drupal.

I installed & maintain system instances of drush & drupal console.

I don't need the local installs. I don't want to install them to disk at all.

How do you configure the 'composer create project ...' to not require/install drush & drupal console?

1 Answer 1


You can remove these after the fact:

composer remove drush/drush
composer remove drupal/console

However, it is recommended that you should use local installs of Drush and Drupal Console when using Drupal 8. If you use global versions of these tools, then you run the risk of running into dependency hell - incompatibilities between requirements of Drush or Drupal Console that do not align with what is used in Drupal 8. When you use a global cli tool to bootstrap Drupal 8, then the cli tool will load two autoloaders. If the same library exists in both autoloaders at different versions -- even just a "dot release" difference -- then you could get into a situation where every command aborts with an unrecoverable error.

If you only maintain a single version of Drupal 8 on your system, and carefully keep the versions of Drush and Drupal Console in alignment with that, then it will typically work, so you may remove the local version if you wish. The diagnostic efforts required when something goes wrong is quite extensive, so be cautious if you make this choice.

  • OK, I need to ask so I understand: I'm using drupal console to help me quickly develop modules - for development only. So I must require it when developing it, then remove it before committing my project to git? This seems like unnecessary extra processes, that could be avoided by a global install. SURE, if that's how I'm supposed to do it, I will. It just seems wrong!
    – RominRonin
    Feb 9, 2017 at 10:03
  • The latest versions of Drupal Console insist on a site-local install. Feb 9, 2017 at 15:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.