I'm a beginner at Magento and trying to install magento from a git cloned private repository and I've been stuck at this error during Magento CLI installation. I can't seem to find any solution for it. It would be a great help if someone can guide me through it.
Invalid entity_type specified: catalog_product
Please download the Magento using the below command:
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.4.1 magento241
Then install Magento using the below command:
php bin/magento setup:install --base-url="http://127.0.0.1/magento241/" --db-host="localhost" --db-name="magentodev" --db-user="root" --admin-firstname="admin" --admin-lastname="admin" --admin-email="admin@admin.com" --admin-user="admin" --admin-password="admin123" --language="en_US" --currency="INR" --timezone="America/Chicago" --use-rewrites="1" --backend-frontname="admin" --search-engine=elasticsearch7 --elasticsearch-host=127.0.0.1 --elasticsearch-port=9200
Change the URL, dbname, user and other details as per your requirements.
and also check the memory limit of PHP is 4GB or not. If not then set the memory to 4GB.
If you are a beginner with Magento, I think you should use composer to get the full source. This is the latest version, you can use it to install
composer create-project --repository=https://repo.magento.com/ magento/project-community-edition <install-directory-name>
Open your database and check if you have catalog_product entity type in the eav_entity_type table
if not it seems like data is not installed yet. Clean up your database and try to installed again.
In these cases you need to move code folder outside app folder and try again and after finish you can put it back