magento2-sample-data icon indicating copy to clipboard operation
magento2-sample-data copied to clipboard

magento sampledata:deploy errors out with "Could not find a matching version of package/module-swatches-sample-data. Check the package spelling, your version constraint and that the package is available in a stability which is matches your minimum-stability (stable).

Open lfeldman opened this issue 3 years ago • 2 comments

I was not able to install sample data as I have been hit by the error as follows: image

lfeldman avatar May 16 '22 12:05 lfeldman

Add repositories https://repo.magento.com/ to your composer.json fixed this.

danhhuynh avatar Jul 14 '22 07:07 danhhuynh

I have added entry to composer.json as follows:

[root@magentovm html]# more composer.json
{
    "repositories": [
        {
            "type": "composer",
            "url": "https://repo.magento.com/
        }
    ]
    "name": "magento/magento2ce",
    "description": "Magento 2 (Open Source)",
    "type": "project",
    "license": [
        "OSL-3.0",
        "AFL-3.0"
    ],
(...)

Then I have started the command, but no clue what to do next:

[root@magentovm html]#  /var/www/html/bin/magento sampledata:deploy --no-interaction
Git installations must deploy sample data from GitHub; see https://devdocs.magento.com/guides/v2.3/install-gde/install/sample-data-after-clone.html for more information.

lfeldman avatar Aug 16 '22 10:08 lfeldman