I am running Drupal 9.2.4 on Lando on Mac Big Sur. When I use composer to install a module it first deletes core.
Removing package drupal/core so that it can be re-installed and re-patched.
- Removing drupal/core (9.2.4)
Then it reinstalls it.
- Installing drupal/core (9.2.4): Extracting archive
If the module fails to install, no core!
I think these are the relevant lines from composer.json.
"drupal/core": "^9.2.4",
"drupal/core-composer-scaffold": "@stable",
"drupal/core-project-message": "9.2.4",
"drupal/core-recommended": "@stable",
Any ideas as to why this is happening and how to prevent it from happening?