Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootstrap error with Composer 2 #29

Open
serasset opened this issue Nov 13, 2020 · 1 comment
Open

Bootstrap error with Composer 2 #29

serasset opened this issue Nov 13, 2020 · 1 comment

Comments

@serasset
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant