Closed akolbo closed 5 years ago
Hi @akolbo
the problem you're seeing is not specific to WP Starter nor to batcache, but comes from Composer, and specifically with the minimum-stability
flag.
When this is not set, Composer will default to stable
meaning that only packages marked as stable will be installed. WP starter 3 is currently in beta, so is not stable. Regarding frc/batcache
its non-standard version name let Composer think that it is not stable as well.
You hae 2 ways to solve the issue:
minimum-stability
to dev
in your composer.json
, which will tell Composer you are ok installing any non-stable packages @dev
stability flag and e.g. require "wecodemore/wpstarter": "^3@dev"
and "frc/batcache": "^1.3@dev"
.Hope this helps.
Thanks so much for the detailed response @gmazzap. Helps a lot!
Describe the bug Requested packages wpstarter "^3" and batcache "1.3.*" produces "Problem" errors.
To Reproduce Steps to reproduce the behavior:
composer install
Expected behavior Composer would install the required dependencies.
composer.json
:wpstarter.json
:scripts/wp-cli-commands.php
I can change the composer.json dependencies to this:
"wecodemore/wpstarter": "v3.0.0-beta.1",
and"frc/batcache": "v1.3-a2",
And it works. Is that the best way?