Skip to content

Can't install in a Laravel 9 project #147

@mcallan83

Description

@mcallan83

There seem to be some composer conflicts that prevent this from being installed in a new Laravel 9 project. I am running PHP 8.1. This is related to #145, which was closed.

composer require spatie/phpunit-watcher --dev

Output:

  Problem 1
    - spatie/phpunit-watcher[1.23.5, ..., 1.23.6] require yosymfony/resource-watcher ^2.0 | ^3.0 -> satisfiable by yosymfony/resource-watcher[v2.0.0, v2.0.1, v3.0.0, 3.0.x-dev].
    - spatie/phpunit-watcher 1.23.0 requires php ^7.2 -> your php version (8.1.5) does not satisfy that requirement.
    - spatie/phpunit-watcher 1.23.1 requires symfony/console ^5.0 -> found symfony/console[v5.0.0-BETA1, ..., 5.4.x-dev] but the package is fixed to v6.0.7 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - spatie/phpunit-watcher[1.23.2, ..., 1.23.4] require symfony/console ^5.2 -> found symfony/console[v5.2.0-BETA1, ..., 5.4.x-dev] but the package is fixed to v6.0.7 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - yosymfony/resource-watcher v2.0.0 requires symfony/finder ^2.7|^3.0|^4.0 -> found symfony/finder[v2.7.0-BETA1, ..., 2.8.x-dev, v3.0.0-BETA1, ..., 3.4.x-dev, v4.0.0-BETA1, ..., 4.4.x-dev] but the package is fixed to v6.0.3 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - yosymfony/resource-watcher[v2.0.1, v3.0.0, ..., 3.0.x-dev] require symfony/finder ^2.7|^3.0|^4.0|^5.0 -> found symfony/finder[v2.7.0-BETA1, ..., 2.8.x-dev, v3.0.0-BETA1, ..., 3.4.x-dev, v4.0.0-BETA1, ..., 4.4.x-dev, v5.0.0-BETA1, ..., 5.4.x-dev] but the package is fixed to v6.0.3 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - Root composer.json requires spatie/phpunit-watcher ^1.23 -> satisfiable by spatie/phpunit-watcher[1.23.0, ..., 1.23.6].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require spatie/phpunit-watcher:*" to figure out if any version is installable, or "composer require spatie/phpunit-watcher:^2.1" if you know which you need.

It looks as if the yosymfony/resource-watcher package hasn't been updated to work with newer versions of Smyfony. There is a PR out that would fix this, but it was opened months ago and has not been merged.

yosymfony/resource-watcher#12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions