Upgrading CiviCRM under Drupal 8: How can I get around this error?
You can use:
(confirming this syntax)
karins-MBP:d8civicrm.local sysadmin$ composer require pear/pear_exception:'1.0.1 as 1.0.0'
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 0 updates, 0 removals
Writing lock file
Generating autoload files
  - CiviCRM asset map
30 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Syntax in
https://docs.civicrm.org/installation/en/latest/drupal8/
is wrong. Will put in an MR -&gt; https://lab.civicrm.org/documentation/docs/installation/-/merge_requests/10