It seems your installation was not completed, please check if the DB pointed in the setup install command has been populated with all the tables. If the tables are populated you might be missing install timestamp in app/etc/env.php, please check if you have install node populated properly in there, it should be something like below;
'install' => [
I finally managed to to work this:
Use composer version 1.9.0:
1. Instal composer 1.9. Or You can downgrade it.
php -r "copy('https://getcomposer.org/installer',
sudo php composer-setup.php --install-dir=/bin/composer19
2. Use composer 1.9 to get magento2.4.1.
The best way to install the Magento is the Composer.
sudo composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition /Applications/XAMPP/htdocs/magento2 2.3.0
If we want to install the latest version then don't need to put the version at the end of the command. Then command will be:
sudo composer create-project --...