Error building Player: Currently selected scripting backend (Mono) is not installed

Hello everyone,
I am trying to debug this error for hours now.
Whenever I try to build my project, I get the following log output.

I have mono installed via Hub.

Something weird I found out:

The directory /Users/bokken… does not even exist in my system.

Some useful context:
- it worked before

  • things I did before the error occurred:

  • Created a github repo on github.com

  • Cloned the empty repo on my local machine

  • Moved the Unity project folder into the cloned repo on my machine

  • Committed and pushed it

  • Made various other commits and pushed them

And now building does not work anymore.

Can anyone help me?

I found the solution to this problem in a different thread: Unity 2021.2: Dedicated Server target and stripping optimizations now live! Please share feedback! page-2#post-8048777