A
A
Alexander Evgenievich2015-02-11 18:09:17
symfony
Alexander Evgenievich, 2015-02-11 18:09:17

How to fix errors when connecting a private repository in composer?

Hello.
I'm trying to connect a private repository via composer.

"require": {
        "isolutions/storage-bundle" : "dev-develop"
    },
    "repositories" : [
        {
            "type" : "git",
            "url"  : "[email protected]:isolutions/storage-bundle.git"
        }
    ],

Gives an error:
- The requested package isolutions/storage-bundle could not be found in any version, there may be a typo in the package name.
I tried to specify different versions, added "minimum-stability": "dev" , etc. etc. I tried all the options with the versions and the name of the package itself, still the same error.
It connects to the repository itself without problems, sees the branches.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Evgenievich, 2015-02-11
@banderos120

Thanks MintTea
You should have specified the correct name, which is specified in the composer.json of the loaded package, i.e. I have had :

"require": {
        "isolutions/storage-bundle" : "dev-develop"
    }

but it cost:
"require": {
        "storage-bundle" : "dev-develop"
    }

Since such a package name is specified in its composer.json file:
"name" : "storage-bundle"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question