Why am I encountering an error when globally installing Shopify CLI?

When following the Documentation on how to get Started with Developing a Shopify Theme I run Into an Error. I’m on Windows and trying to globally install @Shopify_77 /cli with npm. I tried to Use CMD and PWSH version 6 and 7.

Here u can see that i have installed all mentioned Requirements, and see the Full Error Output.

I figured It out. The problem lies in the yarn Preinstall Script(Related Issue). Just change the npm script-shell to cmd with

npm config set script-shell cmd

after the install is done u can revert this with

npm config set script-shell pwsh

I hope this helps anyone else encountering this Propblem.