install moule compaitble with 8 in drupal 9 composer code example
Example: download specific version of drupal using composer
composer create-project drupal-composer/drupal-project:8.x-dev my_site_name_dir --no-interaction --no-install
composer create-project drupal-composer/drupal-project:8.x-dev my_site_name_dir --no-interaction --no-install