When trying to update plugins, themes or wordpress version it leads you to ftp informations for the reason that your wordpress don’t have credentials or access to the system files and folders.
To solve my problem I go to xampp-vm “open terminal” where I do some terminal command.
I simply update the user group of the wordpress folder same on the http.conf settings.
You can look for these value.
<ifmodule unixd_module>
User daemon
Group daemon
</ifmodule>
At the terminal command, change the owner of the folder with this command.
sudo chown -Rf daemon.daemon /path/of/wordpress
Do not forget to restart your Apache to make your changes take effects.
It works for me and I hope it helps you too.You can also try the old version of doing this and the other way around is that you change the httpd.config settings to the present user admin. check this tutorial How To Update Your WordPress On XAMPP Running On Mac OSX?