A: If Drush is not working, it’s usually because the path to Drush is incorrect or the version conflicts exist. Here’s how to resolve it:
-
- Check if Drush is installed via Composer in your project:
vendor/bin/drush status. - If your
vendorfolder is one directory above theweb/folder, use:..\vendor\bin\drush status. - Alternatively, create a batch file
drush.batinweb/with:
- Check if Drush is installed via Composer in your project:
@echo off
php "..\vendor\bin\drush" %*
- Now you can simply run
drush statusfromweb/. - If you still have version conflicts, consider using a compatible Drush version for your Drupal installation.
Following these steps should make Drush commands work properly in your Drupal environment.
