Drush 9 on Windows 7 problem I installed drush 9 and now I'm getting the following error whenever I run a drush command:

/usr/bin/sh: /cygdrive/c/mysite/vendor/drush/drush/drush.launcher: No such file or directory


Details:


I have installed drush 9 on Windows 7 using composer. This was an update to my previous drush 8.
The drush files are installed in my local site's vendor directory.
The drush.launcher file is in the directory indicated in the above error message.
To run a drush command, I go to my site's root directory using MINGW64 and run the command using vendor/bin/drush. for example:


vendor/bin/drush drusn --version



I have C:\mysite\vendor\bin in my path environment variable.
I don't want to use drush.launcher at this time but not sure why it gets invoked and yet not found.


Thank you in advance for your help.
Drush 9 doesn't come with drush.launcher so something is wrong with your Drush installation / update. You should try to fix that by updating or reinstalling Drush. However, in the meantime just delete drush.launcher.

PS! It's recommended to install Drush Launcher in addition to the site-local Drush.