国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

無法安裝 phinx 嗎

= - =

解決方案

  1. 【推薦】先把 composer.lock 刪掉,再重新執(zhí)行 composer require robmorgan/phinx

    rm composer.lock
    composer require robmorgan/phinx
  2. 手動(dòng)降級(jí)包版本。由 3 降到 2 psr/log:^2、psr/simple-cache:^2
    命令:composer require psr/log:^2 psr/simple-cache:^2 robmorgan/phinx

問題

這里是執(zhí)行日志

? root@hecs  /www/wwwroot/webman git:(master) ? composer require robmorgan/phinx
Using version ^0.12.10 for robmorgan/phinx
./composer.json has been updated
Running composer update robmorgan/phinx
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - cakephp/datasource[4.3.5, ..., 4.3.6] require psr/log ^1.0 || ^2.0 -> found psr/log[1.0.0, ..., 1.1.4, 2.0.0] but the package is fixed to 3.0.0 (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.
    - cakephp/datasource[4.0.0, ..., 4.3.4] require psr/log ^1.1 -> found psr/log[1.1.0, ..., 1.1.4] but the package is fixed to 3.0.0 (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.
    - robmorgan/phinx 0.12.10 requires cakephp/database ^4.0 -> satisfiable by cakephp/database[4.0.0, ..., 4.3.6].
    - cakephp/database[4.0.0, ..., 4.3.6] require cakephp/datasource ^4.0 -> satisfiable by cakephp/datasource[4.0.0, ..., 4.3.6].
    - Root composer.json requires robmorgan/phinx ^0.12.10 -> satisfiable by robmorgan/phinx[0.12.10].

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

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
? root@hecs  /www/wwwroot/webman git:(master) ?
2154 1 0
1個(gè)回答

nitron

psr/log版本太高,被鎖在3.0.0了,加個(gè)參數(shù)-W試下

  • = - = 2022-03-11

    加了無效噢,需要進(jìn)行版本降級(jí)。我加在提問的解決部分了

  • nitron 2022-03-11

    你這樣 先把composer.lock 刪掉,再require,monolog里composer.json對(duì)psr/log的要求是1.0,2.0,3.0都可以

  • = - = 2022-03-11

    好,我試試

  • = - = 2022-03-11

    可以。刪除后重新安裝就能裝了

  • = - = 2022-03-11

    謝謝

  • nitron 2022-03-11

    官方關(guān)閉的issue

    https://github.com/cakephp/phinx/issues/2055

    大意就是psr/log v3需要cakephp5才支持,cakephp4不支持(spinx依賴cakephp4的datasource包)

  • = - = 2022-03-11

    嗯嗯。是這個(gè)原因。

  • = - = 2022-03-11

    datasource 依賴的版本還沒升級(jí),所以導(dǎo)致不能安裝。早點(diǎn)休息吖。

年代過于久遠(yuǎn),無法發(fā)表回答
??