用webman框架按照文档说的执行
composer require yansongda/pay ^3.0.0
命令后,提示 psr/log[1.1.0, ..., 1.1.4] ,现在用psr/log是3.0.2的,psr/log降到1.1.4左右的话,会有其他的问题吗
composer require yansongda/pay ^3.0.0
./composer.json has been updated
Running composer update yansongda/pay
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires yansongda/pay 3.0.0 -> satisfiable by yansongda/pay[v3.0.0].
- yansongda/pay v3.0.0 requires psr/log ^1.1 -> found psr/log[1.1.0, ..., 1.1.4] but the package is fixed to 3.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.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
composer require yansongda/pay ^3.0.0
./composer.json has been updated
Running composer update yansongda/pay
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires yansongda/pay 3.0.0 -> satisfiable by yansongda/pay[v3.0.0].
- yansongda/pay v3.0.0 requires psr/log ^1.1 -> found psr/log[1.1.0, ..., 1.1.4] but the package is fixed to 3.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.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
composer require yansongda/pay ^3.0.0
./composer.json has been updated
Running composer update yansongda/pay
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
Workerman/5.1.0 PHP/8.2.13 (Jit off) Windows NT/10.0
"workerman/webman-framework": "^2.1",
我修改过composer.json 里面的psr/log版本,执行了 composer update psr/log --with-all-dependencies
后面又报了这个:
Problem 1
Problem 2
Problem 3
Problem 4
装的版本不对,可能你用了powershell,powershell会转义字符
^
,直接装3.0.0去了powsershell 用命令
composer require yansongda/pay ~3.0
来安装谢谢,是这个问题导致的。