We've been using standalone Drush version so far to manage Drupal 7 websites, however the latest Drush version requires to be setup within Composer context. As Greg stated on New Drush install instructions use Composer for install, even on Drupal 7?

Drush uses composer to install its dependencies, so please follow the composer instructions regardless of whether you plan to use drush with Drupal 7 or Drupal 8.

So after installing Composer globally and getting happy Drush for Drupal 8 websites, it's been really problematic to get it running for old Drupal 7 websites. Too many old Drupal 7 websites that we want to keep managing old ways without Composer. At the same time we need somehow to get Drush working.

When triggered within old Drupal 7 website Drush Launcher complains:

The Drush launcher could not find a Drupal site to operate on. Please do one of the following:

  • Navigate to any where within your Drupal project and try again.
  • Add --root=/path/to/drupal so Drush knows where your site is located.

How could I get Drush 8.x running through new Drush Launcher (which was installed per step 2 on http://docs.drush.org/en/master/install) for Drupal 7 website without getting Composer involved?

Alternatively, if Composer is must to-go-through from now on, then what would be steps to get only Drush functional? I mean to satisfy Composer just to get Drush running without letting Composer to change anything on existing Drupal 7 websites?

closed as too broad by kiamlaluno Jul 14 at 17:28

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


It seems there has been number of discussions with this regard on:

and none of them offer a good solution. The last one seems to have a possible solution, however it still requires you to run a custom composer.json file and that means you have to have Composer with necessary structure to run. (In particular, the scripts and vendor directories one level up of your Drupal core).

So until one of the above discussions end up offering some solid solution for non-Composer Drupal 7 sites, instead of installing Drush Launcher it seems much better to install Drush 8 globally (per http://docs.drush.org/en/8.x/install), which will automatically detect Composer-installed Drupal 8 sites and delegate its execution to local Drush 9 anyway.

There is one problem with this way though - you will hit https://github.com/drush-ops/drush/issues/2065 But that discussion has a working solution.

So to conclude, there is no good way of making Drush Launcher to work with non-Composer Drupal 7 sites yet. It's better to stick with old ways for now.

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