Closed GoZOo closed 5 years ago
similar issue here..
~/Docker/drupal composer global require mglaman/drupal-check
Changed current directory to /Users/dakku/.composer
1/1: http://repo.packagist.org/p/provider-latest$d73386d74bada76df2dd91c79096d6cb93f0b38aedc6bf3fdc03d6815c9b0343.json
Finished: success: 1, skipped: 0, failure: 0, total: 1
Using version ^1.0 for mglaman/drupal-check
./composer.json has been updated
1/1: http://repo.packagist.org/p/provider-latest$d73386d74bada76df2dd91c79096d6cb93f0b38aedc6bf3fdc03d6815c9b0343.json
Finished: success: 1, skipped: 0, failure: 0, total: 1
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for squizlabs/php_codesniffer (locked at 2.9.1) -> satisfiable by squizlabs/php_codesniffer[2.9.1].
- Conclusion: don't install mglaman/drupal-check 1.0.9
- Installation request for symfony/yaml (locked at v3.3.8) -> satisfiable by symfony/yaml[v3.3.8].
- Conclusion: don't install mglaman/drupal-check 1.0.8
- mglaman/drupal-check 1.0.0 requires mglaman/phpstan-drupal-deprecations ^0.11.1 -> satisfiable by mglaman/phpstan-drupal-deprecations[0.11.1].
- mglaman/drupal-check 1.0.1 requires mglaman/phpstan-drupal-deprecations ^0.11.1 -> satisfiable by mglaman/phpstan-drupal-deprecations[0.11.1].
- mglaman/drupal-check 1.0.2 requires mglaman/phpstan-drupal-deprecations ^0.11.1 -> satisfiable by mglaman/phpstan-drupal-deprecations[0.11.1].
- mglaman/drupal-check 1.0.3 requires mglaman/phpstan-drupal-deprecations ^0.11.1 -> satisfiable by mglaman/phpstan-drupal-deprecations[0.11.1].
- mglaman/drupal-check 1.0.4 requires mglaman/phpstan-drupal-deprecations ^0.11.1 -> satisfiable by mglaman/phpstan-drupal-deprecations[0.11.1].
- mglaman/drupal-check 1.0.5 requires mglaman/phpstan-drupal-deprecations ^0.11.1 -> satisfiable by mglaman/phpstan-drupal-deprecations[0.11.1].
- mglaman/drupal-check 1.0.6 requires mglaman/phpstan-drupal-deprecations ^0.11.1 -> satisfiable by mglaman/phpstan-drupal-deprecations[0.11.1].
- mglaman/drupal-check 1.0.7 requires mglaman/phpstan-drupal-deprecations ^0.11.1 -> satisfiable by mglaman/phpstan-drupal-deprecations[0.11.1].
- Conclusion: don't install mglaman/phpstan-drupal-deprecations 0.11.1
- Installation request for mglaman/drupal-check ^1.0 -> satisfiable by mglaman/drupal-check[1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9].
Installation failed, reverting ./composer.json to its original content.
OP's error is https://github.com/mglaman/drupal-check/issues/37. You need to manually upgrade composer require nikic/php-parser:^4
. It's a problem for old sites.
@dakkusingh I had codesniffer in require
and not require-dev
😱 That was fixed in 1c477041d7d5afdad98e02fb5a52708b143de0f8
How is drupal-check installed?
Environment:
Describe the bug Installing drupal-check as global fail. See output.
Console output