0

I have problems running Drush on windows 10 with aquia desktop.

The problem. I have folder structure

c:\www\arlande.nl
c:\www\itjobcoach

Going into arlande.nl\web running drush is good : report is:

 Drupal version         :  7.60
 Site URI               :  http://default
 Database driver        :  mysql
 Database hostname      :  localhost
 Database port          :
 Database username      :  root
 Database name          :  db072087_arlande
 PHP configuration      :  "C:\Program Files (x86)\DevDesktop\php7_1_x64\php.ini"
 PHP OS                 :  WINNT
 Drush script           :  C:/Program Files (x86)/DevDesktop/tools/vendor/drush/drush/drush.php
 Drush version          :  8.1.17
 Drush temp directory   :  C:\Users\Justme\AppData\Local\Temp
 Drush configuration    :  "C:\Program Files (x86)\DevDesktop\tools\vendor\drush\drush\drushrc.php"
 Drush alias files      :  C:/Users/Justme/.acquia/DevDesktop/Drush/Aliases/aliases.drushrc.php
                           c:\www\arlande.nl\sites\all\drush/site.aliases.drushrc.php
                           C:\www\arlande.nl/sites/all/drush/site.aliases.drushrc.php
 Drupal root            :  C:\www\arlande.nl
 Drupal Settings File   :  sites/default/settings.php
 Site path              :  sites/default

Going into itjobcoach\docroot running drush is not good (inside is a D8 core installation) error is:

'"C:\\www\\itjobcoach\\vendor\\bin\\drush.php.bat"' is not recognized as an internal or external command,

After diving into I found out that drush was twiced installed with composer on a global profile. I removed this. So now only drush is available as a tool under aquia desktop

I added path: C:\Program Files (x86)\DevDesktop\tools\vendor\drush\drush to my windows path

I removed itjobcoach\

I run composer create-project drupal-composer/drupal-project:8.x-dev site2 --stability dev --no-interaction

No errors. I loaded this into aqcuia desktop. drupal core site install process is running good. Aquica desktop is latest version.

However drush in this site is not running.

C:\www\itjobcoach\web>which drush
/cygdrive/c/Program Files (x86)/DevDesktop/tools/vendor/drush/drush/drush

C:\www\itjobcoach\web>drush
'"C:\\www\\itjobcoach\\vendor\\bin\\drush.php.bat"' is not recognized as an internal or external command,
operable program or batch file.

In one of the many articles I red they say to add drush to the package so after running

composer require drush/drush

I have

C:\www\itjobcoach>composer require drush/drush
Using version ^9.5 for drush/drush
./composer.json has been updated
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Writing lock file
Generating autoload files
> DrupalProject\composer\ScriptHandler::createRequiredFiles

Still the error is the same.

Can somebody point me to the correct direction how to solve this?

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.