Trying to compile Marlin 2.1.x for BTT SKR Mini E3 V3.0

I did a clean install on another computer and that worked. So I deleted the .platformio directory on my computer and copied it across from the other one. Now it works.
Don’t know why because when I tried a clean install on my computer, it still didn’t work.