I am getting [error] could not find driver for the command drush cache-rebuild
Below is the Drush and Drupal Version Details, Appreciate any help. Thanks

I was using wampp with PostgreSQL where I enabled pdo_pgsql, pgsql from wampp applcation menu (wampp> php > php extension). It didn't work for me.
Step 1) run php -m in terminal, in my case it didn't listed those php modules although it was showing enabled in wampp. So I went to php.ini and enabled those modules.
Step 2) drush cr or drush cache-rebuild clears cache from database, so make sure to put postgres path to system environment variable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With