0

I have uploaded my magento 2 module to GitHub, and published my private module to https://packagist.com/. Now module published successfully as below.

enter image description here

And my composer as below

{
    "name": "vlcsolutions/module-connector",
    "description": "Business Central Express Connect",
    "require": {
        "php": "~7.0.0|~7.1.0|~7.2.0|~7.3.0|~7.4.0"
    },"minimum-stability": "dev-main",
"repositories": {
    "type": "composer",
    "url": "https://repo.packagist.com/vlcsolutions/"
},
    "type": "magento2-module",
    "version": "2.2.0",
    "license": [
        "OSL-3.0",
        "AFL-3.0"
    ],
    "autoload": {
        "files": [
            "registration.php"
        ],
        "psr-4": {
            "vlcsolutions\\connector\\": ""
        }
    }
}

When I installing composer require vlcsolutions/module-connector:dev-stable the module getting below error.

enter image description here

Can you please suggest me where I went wrong?

2
  • what happened if you remove :dev-stable ?
    – fmsthird
    Dec 15 '20 at 14:55
  • @fmsthird Getting the same error.
    – Bojjaiah
    Dec 15 '20 at 15:11
0

I think it's because the composer.json has a "version": "2.2.0". Which is not listed in your available package version.
Maybe try changing it to dev or dev-stable and try again.

2
0

Have you created a release in Github? From your repository, click "Tags" towards the top of the page, then "Create a Release" and fill out the release version as 2.2.0.

3
  • Created, but still getting same error.
    – Bojjaiah
    Dec 16 '20 at 10:53
  • 1
    is it a private github repository? if so you'll need to specify the git repo as a vcs source in composer.json and add your composer client ssh keys to the git repo - getcomposer.org/doc/…
    – smstl
    Dec 16 '20 at 11:18
  • Okay, let me check
    – Bojjaiah
    Dec 16 '20 at 12:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.