markhuot / craft-pest

https://craft-pest.com
Other
38 stars 11 forks source link

Getting a Composer "minimum-stability" error on install #69

Closed aaronbushnell closed 1 year ago

aaronbushnell commented 1 year ago

When I try to install Pest for Craft CMS I get the following error—

In PackageDiscoveryTrait.php line 327:

  Could not find a version of package markhuot/craft-pest matching your minimum-stability (stable). Require it with an expli  
  cit version constraint allowing its desired stability.                                                                      

This happens in both Craft 3.x and 4.x FWIW!

aaronbushnell commented 1 year ago

I presume it's because (at least for now) you need to run the install using something like this?

composer require markhuot/craft-pest:1.0.0-alpha10 --dev
markhuot commented 1 year ago

Yup, until it reaches a stable version you have to declare the version constraint explicitly, like you have. Once it’s stable (which it basically is) this requirement will fade away.

aaronbushnell commented 1 year ago

Awesome, thanks a bunch, @markhuot!