Using ddev I created a webserver locally and I have a Drupal 8 project with drush 10, but I need drush 9. How can I change the version of drush in the project? Thanks so much
Asked
Active
Viewed 627 times
1 Answers
1
As @leymannx says in the comments, this isn't really a ddev question, it's a composer question, but it's easy.
ddev composer require "drush/drush:^9" will get the most recent Drush 9 version.
But I should mention that it's unlikely that you actually need Drush 9, Drush 10 is what most people are using with Drupal 8 and 9.
rfay
- 9,963
- 1
- 47
- 89
drush --version command and the answer was "Drush Launcher Version: 0.6.0 Drush Commandline Tool 9.0.0." I run the command in the webroot and e restitusce Launcher Version: 0.6.0 Drush Commandline Tool 10.0.0– AndreaAmb May 04 '20 at 12:39cd web && ../vendor/drush/drush/drush --versionand the answer wasDrush Commandline Tool 10.2.2– AndreaAmb May 07 '20 at 17:18