Upgraded site from drupal 9.5 to 10.2.2. After pulling update on server with git, everything is fine except for drush. My local machine (8.1.20) and server (8.1.21) both php 8.1, no global drush installed, I've grep'd for absolute paths in vendor, checked printenv, no old files leftover on server. I'm out of ideas, but I'm blaming composer :)
local: $ ./vendor/bin/drush --version Drush Commandline Tool 12.5.3.0
server: $ ./vendor/bin/drush --version PHP Fatal error: Uncaught Error: Class "Drush\DrupalFinder\DrushDrupalFinder" not found in /var/www/html/xxx/www/vendor/drush/drush/src/Preflight/Preflight.php:75 Stack trace: #0 /var/www/html/xxx/www/vendor/drush/drush/drush.php(135): Drush\Preflight\Preflight->__construct() #1 /var/www/html/xxx/www/vendor/drush/drush/drush(4): require('...') #2 /var/www/html/xxx/www/vendor/bin/drush(119): include('...') #3 {main} thrown in /var/www/html/xxx/www/vendor/drush/drush/src/Preflight/Preflight.php on line 75
composer install
after moving to this platform?Drush\DrupalFinder\DrushDrupalFinder
is among the files you deployed?/var/www/html/xxx/www/vendor/drush
is an unusual path, you would normally expect to find drush in/var/www/html/xxx/vendor
. Maybe you have a custom solution which needs upgrading along with the Drupal versionvendor/
,<webroot>/core
,<webroot>/modules/contrib
, and so on - seeing a<webroot>/vendor/
folder implies you're not following the usual practice, so it's difficult to advise