I figured this out and wanted to come back and help anybody else who might run into this issue as there is no documentation on the web.
I was trying to get to my site folder using: localhost:8889/foldername
I was able to bypass the error that was coming up and install wordpress by typing in this address instead: localhost:8888/foldername/wp-admin/setup-config.php.
If you run into this issue you can probably use this address to bypass it and install wordpress.
I’m using MAMP so when I type in localhost:8888 it goes to the MAMP page with no problem saying it was installed successfully.
When I use 127.0.0.1 or just localhost neither of those work because it says safari can’t connect to the server.