Build error: DirectoryNotFoundException: Could not find a part of the path

Hello, I’ve tried searching online for help with this, but I can’t seem to find a solution. I am new to using Unity so bare with me as I’m a bit clueless.

On trying to export my game to Windows, it fails on the error:
DirectoryNotFoundException: Could not find a part of the path ‘C:\Program Files\Unity\Hub\Editor\2020.3.30f1\Editor\Data\PlaybackEngines\WindowsStandaloneSupport\Variations\win64_nondevelopment_mono\Data’.

Yes, the gap in the path is present in the log, I don’t know if that’s relevant to the issue or if that’s just a format issue on the log. Any ideas and suggestions would be appreciated!

Can you show the contents of “C:\Program Files\Unity\Hub\Editor\2020.3.30f1\Editor\Data\PlaybackEngines\WindowsStandaloneSupport\Variations”? How did you install the editor? This suspiciously looks like corrupted installation.

Is there a way to access them in Unity? In Windows file manager, there are 7 folders:
8252169--1079904--upload_2022-7-4_9-28-38.png
It appears they all have stuff in them.

I don’t remember how it was I installed the editor. If it’s a corruption then, ought I reinstall it?

There are indeed folders missing from there. I don’t know how or why. I would suggest reinstalling Unity.