Search code examples
phplaravellaravel-valet

ERROR when try to install cretueusebiu/valet-windows


Hi Guys i try to install cretueusebiu/valet-windows, but i found the error like this : $ composer global require cretueusebiu/valet-windows Changed current directory to C:/Users/ROG/AppData/Roaming/Composer Using version ^2.4 for cretueusebiu/valet-windows ./composer.json has been updated Running composer update cretueusebiu/valet-windows Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages.

Problem 1 - illuminate/container[v8.0.0, ..., v8.11.2] require php ^7.3 -> your php version (8.1.1) does not satisfy that requirement. - illuminate/container[v8.12.0, ..., v8.77.1] require psr/container ^1.0 -> found psr/container[1.0.0, 1.1.0, 1.1.1, 1.1.2] but the package is fixed to 2.0.2 (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. - cretueusebiu/valet-windows[2.4.0, ..., 2.4.1] require illuminate/container ^8.0 -> satisfiable by illuminate/container[v8.0.0, ..., v8.77.1]. - Root composer.json requires cretueusebiu/valet-windows ^2.4 -> satisfiable by cretueusebiu/valet-windows[2.4.0, 2.4.1].

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 cretueusebiu/valet-windows:*" to figure out if any version is installable, or "composer require cretueusebiu/valet-windows:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

can anyone help, Thanks


Solution

  • I solved it by downgrading my php version, thanks All