The requested X / Y package cannot be found in any version.
The requested package should be a git folder with an attached and existing composer.json file. Then, to refer to a specific branch, you need to add the dev- prefix, so dev-master is not master .
Example
Here is a minimal working example:
File: composer.json
{ "require": { "local/my_package": "dev-master" }, "repositories": [ { "packagist.org": false }, { "type": "path", "url": "my_package/" } ] }
File: my_package/composer.json
{ "name": "local/my_package", "require-dev": { "symfony/console": "*" } }
Note. Above the file is the local git repository. To create one, run: git init && git commit -am 'Files' .
To fix the problem, do:
composer install -vvv
Also consider running: composer diagnose to identify common Composer errors.
source share