0
votes

I have an error for composer install:

Your requirements could not be resolved to an installable set of packages.

Problem 1 - Installation request for my/package dev-master -> satisfiable by my/package[dev-master]. - my/package dev-master requires my/library dev-master -> no matching package found.

Potential causes:

my/package composer.json content:

{
  "name": "my/package",
  "description": "package",
  "license": "MIT",
  "authors": [
    {
      "name": "my",
      "email": "my@gmail.com",
      "homepage": "https://github.com/my/"
    }
  ],
  "require": {
    "php": ">=7.4.2",
    "my/library": "dev-master"
  },
  "repositories": [
    {
      "type": "vcs",
      "url": "git@github.com:my/library.git"
    }
  ],
  "autoload": {
    "psr-4": {
      "my\\package\\": "src/"
    }
  }
}

my/library composer.json content:

{
  "name": "my/library",
  "description": "a library",
  "license": "MIT",
  "authors": [
    {
      "name": "my",
      "email": "my@gmail.com",
      "homepage": "https://github.com/my/"
    }
  ],
  "require": {
    "php": ">=7.4.2",
    "ext-json": "*",
    "mesilov/bitrix24-php-sdk": ">=0.7.0",
    "guzzlehttp/guzzle": "~6.0"

  },
  "autoload": {
    "psr-4": {
      "my\\": "src/"
    }
  }
}

What do I do wrong?

1
@YannickEich , I see no answer for my problem thereIvan Shumakov
@YannickEich , both of 'my/library' and 'my/package' are private repositories. So, if 'my/package' is all right hence I think that ssh is ok. Am I right?Ivan Shumakov

1 Answers