I am on windows 10 and have installed Drush 8.1.17 via composer, running on cygwin. I am using PHP 5.6.

When I type drush status, I get an error...

PHP Warning:  require(/home/Don/includes/preflight.inc): 
failed to open stream: No such file or directory in
on line 11

In file:


We have the line:

require __DIR__ . '/includes/preflight.inc';

So it should be trying to access this file (which does exist):


So why is it trying to access the file in the wrong directory?


Any suggestions on what to try to figure out what has gone wrong?

  • 1
    I'm voting to close this question as off-topic because it already has an issue on GitHub github.com/drupal-composer/drupal-project/issues/165 – leymannx Nov 11 '18 at 8:11
  • @leymannx - That bug report is closed so its not going to get any more thought. I tried all the suggestions but no improvement (including checking that the vendor/bin files are links). – spiderplant0 Nov 11 '18 at 12:10
  • Please simply comment to reopen that issue. Everybody in this thread is probably going to be notified immediately (depending on their settings). – leymannx Nov 11 '18 at 12:58
  • Uh sorry, it was the wrong project. This issue should be reported here: github.com/drush-ops/drush/issues. Plus some information about how exactly did you install Composer and Drush. The steps to reproduce. – leymannx Nov 11 '18 at 13:52
  • Just a couple of comments: 1) The install instructions for Drush 8, tells you to download a phar file, unless you plan to use a site local Drush. (You have a global Drush.) See docs.drush.org/en/8.x/install I'm pretty sure this would just work. 2) If you for some reason don't want to use the phar file: What happens if you run drush.php directly - php /home/Don/.composer/vendor/drush/drush/drush.php? 3) Did you try github.com/drupal-composer/drupal-project/issues/… ? – hansfn Nov 12 '18 at 9:41

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.