Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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). #179

Open
lfeldman opened this issue May 16, 2022 · 2 comments

Comments

@lfeldman
Copy link

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

@lfeldman lfeldman changed the title magento samledata: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). 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). May 16, 2022
@danhhuynh
Copy link

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

@lfeldman
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants