Failed to connect to FTP Server

I am getting this message when I am trying to proceed to my hostname in WordPress.

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

This is the link to my WordPress dashboard/home account - http://localhost:8080/test/wp-admin/index.php

This YouTube link here - Showed me how to Install WordPress in XAMPP in Mac. This is to set up WordPress in my Local server. I have it all set up, WordPress zip file in opt/lampp folder, which is found in Xampp, volumes, Explore. Now I can’t download any themes to my new website server in WordPress. What am I doing wrong? I have tried terminal, searched /Applications/XAMPP/mysql/bin but get this back

-bash: /Applications/XAMPP/mysql/bin: No such file or directory. Again, what am I doing wrong?

I can find the bin folder under apache2 in the lampp folder but for some odd reason, I can’t find it in terminal??