I ran composer global require drush/drush:8.1.3
and added C:/Users/username/AppData/Roaming/Composer/vendor/drush/drush to the value of the PATH variable.
drush status
returns the following output.
PHP configuration : C:\xampp\php\php.ini
PHP OS : WINNT
Drush script : C:\Users\username\AppData\Roaming\Composer\vendor\dr
ush\drush\drush
Drush version : 8.1.3
Drush temp directory : C:\Users\username\AppData\Local\Temp
Drush configuration :
Drush alias files :
When I change directory to the one containing the Drupal files, and I run drush status
, I get this error.
'C:\xampp\htdocs\drupal-project\drush' is not recognized as an internal or external command,operable program or batch file.
Why?