Zigbee2mqtt installation error with openhabian

Zigbee2mqtt has a major release change to v2 with breaking changes.
Some important changes are

  • use of pnpm instead npm
  • use of node v20
  • legacy settings are dropped

This results in

  • update via openhabian stops with error
  • new installation fails with error

I don’t have a solution at the moment except a manual installation or upgrade.
Installation is described here:
https://www.zigbee2mqtt.io/guide/installation/01_linux.html
The update here:
https://www.zigbee2mqtt.io/guide/installation/01_linux.html

I did the upgrade yesterday on my system and everything was back online in a few minutes.