wp-react-starter icon indicating copy to clipboard operation
wp-react-starter copied to clipboard

Bootstrap error with Composer 2

Open serasset opened this issue 5 years ago β€’ 1 comments

I just installed composer on my Mac, using brew (the composer installation from wp-react-starter failed).

Then launch create-wp-react-app create-workspace

The process goes on for a moment, then I get the following errors:

[...]

lerna ERR! yarn run bootstrap exited 2 in '@dbnary-dashboard/utils'
lerna ERR! yarn run bootstrap stdout:
$ composer install
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

lerna ERR! yarn run bootstrap stderr:
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run `composer update` or `composer update <package name>`.
Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - dealerdirect/phpcodesniffer-composer-installer is locked to version v0.5.0 and an update of this package was not requested.
    - dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
  Problem 2
    - metasyntactical/composer-plugin-license-check is locked to version v0.5.0 and an update of this package was not requested.
    - metasyntactical/composer-plugin-license-check v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.

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.
error Command failed with exit code 2.

lerna ERR! yarn run bootstrap exited 2 in '@dbnary-dashboard/utils'
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Command failed with exit code 2: yarn bootstrap

Current setup : Mac OS X with :

Checking prerequesits...
β”œβ”€β”€ Yarn v1.22.10
β”œβ”€β”€ Composer version 2.0.6 2020-11-07 11:21:17
β”œβ”€β”€ Docker version 19.03.13, build 4484c46d9d
β”œβ”€β”€ docker-compose version 1.27.4, build 40524192
β”œβ”€β”€ WP-CLI 2.4.0
β”œβ”€β”€ Missing optional Prestissimo (Composer package), install it now: https://packagist.org/packages/hirak/prestissimo

serasset avatar Nov 13 '20 15:11 serasset

I changed the version of 2 packages in my fork. This seems to make the trick.

serasset avatar Nov 25 '20 14:11 serasset