Composer doesn't install child dependencies
I have a root package which is package dependent supertrall/woo-client dev-master as v1.1.6
supertrall/woo-client
package depends on package supertrall/product dev-master as v1.0.0
The problem is that when I try to install supertrall/woo-client
in the root package it says
dev-master supertrall / woo-client requires dev-master supertrall / order to be v1.2.0 -> no matching package found.
However, if I manually install supertrall/product
to the root package and then install supertrall/woo-client
, everything works out fine. So why doesn't composer install sub dependencies automatically? My guess is that when I do require supertrall/woo-client
it should automatically install all the packages it depends on supertrall/woo-client
, etc. This is so annoying please help
source to share
I believe that adding
{
"minimum-stability": "dev",
"prefer-stable": true
}
your composer .json should do it for you. Read more about this in the composer documentation .
source to share