Trying to update Drupal 8 core.
composer require drupal/core:~8.9.2 --no-update
This works fine.
composer -vvv update
It fails with the following:
- Updating drupal/core (8.8.5 => 8.9.2): Update failed (Could not delete web/core: ) Would you like to try reinstalling the package instead [yes]? yes - Removing drupal/core (8.8.5) [RuntimeException] Could not delete web/core:
What's the easiest and/or correct way to resolve this?
(This has happened to me before but can't remember what I did to fix it)