You most likely found this topic as you are stuck with installing openEMS UI…
The angular version you should use is 15.1.2 the install command is thus
npm install -g @email@example.com
Hopefully i saved you a couple of hours figuring this out. However, if you read this in the future, please check if angular X is then supported, before doing the latest install.