Problem: Change directory to Drupal 8/9 instance, and run composer require drupal/console  Then, this error occur: Solution: Install 2 missing modules by running the below composer commands: composer require symfony/filesystem:”4.4.8 as 3.4.35″ composer require symfony/finder:”4.4.8 as 3.4.35″ Then run the composer require drupal/console  again.

Problem: After install Drupal 8, and install Drush for that Drupal 8 instance. The error below occur after running drush cr Solution: sudo mkdir /var/mysql cd /var/mysql sudo ln -s /Applications/XAMPP/xamppfiles/var/mysql/mysql.sock Related Issue: https://blog.kylehuynh.com/sqlstatehy000-2002-no-such-file-or-directory/