D1 mini wemos v4.0.0

Hi,

I’ve bought the D1 mini v4.0.0 (from ali, link below) since it has a usb-c, and before I solder, I wanted to try the blinking light code. I’ve installed the arduino ide and added the ESP Boards, but when I try to flash it (selecting any D1 in the board menu and the port that it is connected on) it gives me a status error 2 after the compilation. I’m wondering if I got the wrong D1 mini? Also, the pin layout seems different(?). Any ideas on how to proceed on this?

Figured it out. You need the correct permissions. This was all on Linux by the way.