WebDevStudios / wds-headless-wordpress

This codebase has been moved to a monorepo. Please see the documentation to learn more. 🍻
https://github.com/WebDevStudios/nextjs-wordpress-starter
GNU General Public License v2.0
32 stars 15 forks source link

Problems using composer to install plugins #20

Open mwoodpatrick opened 3 years ago

mwoodpatrick commented 3 years ago

Running

COMPOSER=composer-public.json composer update

I get:

Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages.

Problem 1

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

gregrickaby commented 3 years ago

@mwoodpatrick Sorry for the trouble (and the delay in my response).

Can you try running:

composer self-update --1 && COMPOSER=composer-public.json composer update

Also, I've updated the documentation to mention using Composer v1.