Warning: "Please install vendored drush for your site for better compatibility"" | Acquia Product Documentation
Cloud Platform
Warning: "Please install vendored drush for your site for better compatibility""
Warning: "Please install vendored drush for your site for better compatibility""
Date Published: February 8, 2024
Issue
When deploying a new branch or tag you may get the following warning in your task log for Drupal 8 or later site:
Executing: ls -l /var/www/html/sitename.dev/docroot/vendor/bin/drush > /dev/null (as sitename.dev@staging-xxxx})
ls: cannot access '/var/www/html/sitename.dev/docroot/vendor/bin/drush'
: No such file or directory
WARN: vendor/bin/drush not found, falling back to system drush. Please install vendored drush for your site for better compatibility
Cause
The code does not have Drush installed via Composer or something is wrong with the Composer structure.
This warning does not impact your deployment.
Resolution
Install Drush in your code via Composer.
If Drush is installed confirm you have a correct composer structure. Composer files and vendor folder should be above the docroot.