marcomorotti In order to perform the installation, the webserver user (often www-data) needs to be able to write in the Flarum installation folder.
I'm not sure how this is set up in XAMPP but this can usually be achieved by changing the owner of the files, updating permissions to allow group or world write, or update the webserver configuration to run as your own user.