Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Composer doesn't install sub dependencies

I have a root package that depends on the package supertrall/woo-client dev-master as v1.1.6

supertrall/woo-client package depends on the supertrall/product dev-master as v1.0.0 package

The problem is when I try to install supertrall/woo-client in the root package, it says

supertrall/woo-client dev-master requires supertrall/order dev-master as v1.2.0 -> no matching package found.

However, if I manually install supertrall/product to the root package and then install supertrall/woo-client, it goes alright. So why composer doesn't install the sub dependencies automatically? I guess it when I do require supertrall/woo-client it must automatically install all the packages on which supertrall/woo-client depends and so forth. This is so annoying, please help

like image 947
super.t Avatar asked Jul 11 '26 11:07

super.t


1 Answers

I believe that adding

{
  "minimum-stability": "dev",
  "prefer-stable": true
}

to your composer.json should do it for you. Read more about it in composer documentation.

like image 75
dimvic Avatar answered Jul 13 '26 22:07

dimvic



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!