当我安装Zend形式时,作曲家错误


C:wamp64wwwzend_task>composer require zendframework/zend-form --dev
Using version ^2.14 for zendframework/zend-form
./composer.json has been updated
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
    - Conclusion: don't install zendframework/zend-form 2.14.1
    - Conclusion: don't install zendframework/zend-form 2.14.0
    - Conclusion: don't install zendframework/zend-form 2.15.x-dev
    - Conclusion: remove zendframework/zend-filter 2.7.2
    - Conclusion: don't install zendframework/zend-filter 2.7.2**
    - zendframework/zend-inputfilter 2.10.0 requires zendframework/zend-filter ^2.9.1 -> satisfiable by zendframework/zend-filter[2.9.1, 2.10.x-dev, 2.9.x-dev].
    - zendframework/zend-inputfilter 2.9.0 requires zendframework/zend-filter ^2.9.1 -> satisfiable by zendframework/zend-filter[2.9.1, 2.10.x-dev, 2.9.x-dev].
    - zendframework/zend-inputfilter 2.9.1 requires zendframework/zend-filter ^2.9.1 -> satisfiable by zendframework/zend-filter[2.9.1, 2.10.x-dev, 2.9.x-dev].
    - zendframework/zend-inputfilter 2.11.x-dev requires zendframework/zend-filter ^2.9.1 -> satisfiable by zendframework/zend-filter[2.9.1, 2.10.x-dev, 2.9.x-dev].
    - zendframework/zend-inputfilter 2.10.x-dev requires zendframework/zend-filter ^2.9.1 -> satisfiable by zendframework/zend-filter[2.9.1, 2.10.x-dev, 2.9.x-dev].
    - Can only install one of: zendframework/zend-filter[2.9.1, 2.7.2].
    - Can only install one of: zendframework/zend-filter[2.10.x-dev, 2.7.2].
    - Can only install one of: zendframework/zend-filter[2.9.x-dev, 2.7.2].
    - Conclusion: don't install zendframework/zend-inputfilter 2.7.6|install zendframework/zend-inputfilter 2.10.0|install zendframework/zend-inputfilter 2.9.0|install zendframework/zend-inputfilter 2.9.1|install zendframework/zend-inputfilter 2.11.x-dev|install zendframework/zend-inputfilter 2.10.x-dev
    - Conclusion: don't install zendframework/zend-form 2.14.1|remove zendframework/zend-inputfilter 2.7.6|install zendframework/zend-inputfilter 2.10.0|install zendframework/zend-inputfilter 2.9.0|install zendframework/zend-inputfilter 2.9.1|install zendframework/zend-inputfilter 2.11.x-dev|install zendframework/zend-inputfilter 2.10.x-dev
    - Conclusion: don't install zendframework/zend-form 2.14.1|don't install zendframework/zend-inputfilter 2.7.6|install zendframework/zend-inputfilter 2.10.0|install zendframework/zend-inputfilter 2.9.0|install zendframework/zend-inputfilter 2.9.1|install zendframework/zend-inputfilter 2.11.x-dev|install zendframework/zend-inputfilter 2.10.x-dev
    - Conclusion: don't install zendframework/zend-form 2.14.1|remove zendframework/zend-inputfilter 2.7.6|install zendframework/zend-inputfilter 2.10.0|install zendframework/zend-inputfilter 2.9.0|install zendframework/zend-inputfilter 2.9.1|install zendframework/zend-inputfilter 2.11.x-dev|install zendframework/zend-inputfilter 2.10.x-dev
    - Conclusion: don't install zendframework/zend-form 2.14.1|don't install zendframework/zend-inputfilter 2.7.6|install zendframework/zend-inputfilter 2.10.0|install zendframework/zend-inputfilter 2.9.0|install zendframework/zend-inputfilter 2.9.1|install zendframework/zend-inputfilter 2.11.x-dev|install zendframework/zend-inputfilter 2.10.x-dev
    - Conclusion: don't install zendframework/zend-form 2.14.0|remove zendframework/zend-inputfilter 2.7.6|install zendframework/zend-inputfilter 2.10.0|install zendframework/zend-inputfilter 2.9.0|install zendframework/zend-inputfilter 2.9.1|install zendframework/zend-inputfilter 2.11.x-dev|install zendframework/zend-inputfilter 2.10.x-dev
    - Conclusion: don't install zendframework/zend-form 2.14.0|don't install zendframework/zend-inputfilter 2.7.6|install zendframework/zend-inputfilter 2.10.0|install zendframework/zend-inputfilter 2.9.0|install zendframework/zend-inputfilter 2.9.1|install zendframework/zend-inputfilter 2.11.x-dev|install zendframework/zend-inputfilter 2.10.x-dev
    - Conclusion: don't install zendframework/zend-form 2.14.0|remove zendframework/zend-inputfilter 2.7.6|install zendframework/zend-inputfilter 2.10.0|install zendframework/zend-inputfilter 2.9.0|install zendframework/zend-inputfilter 2.9.1|install zendframework/zend-inputfilter 2.11.x-dev|install zendframework/zend-inputfilter 2.10.x-dev
    - Conclusion: don't install zendframework/zend-form 2.14.0|don't install zendframework/zend-inputfilter 2.7.6|install zendframework/zend-inputfilter 2.10.0|install zendframework/zend-inputfilter 2.9.0|install zendframework/zend-inputfilter 2.9.1|install zendframework/zend-inputfilter 2.11.x-dev|install zendframework/zend-inputfilter 2.10.x-dev
    - Conclusion: don't install zendframework/zend-form 2.15.x-dev|remove zendframework/zend-inputfilter 2.7.6|install zendframework/zend-inputfilter 2.10.0|install zendframework/zend-inputfilter 2.9.0|install zendframework/zend-inputfilter 2.9.1|install zendframework/zend-inputfilter 2.11.x-dev|install zendframework/zend-inputfilter 2.10.x-dev
    - Conclusion: don't install zendframework/zend-form 2.15.x-dev|don't install zendframework/zend-inputfilter 2.7.6|install zendframework/zend-inputfilter 2.10.0|install zendframework/zend-inputfilter 2.9.0|install zendframework/zend-inputfilter 2.9.1|install zendframework/zend-inputfilter 2.11.x-dev|install zendframework/zend-inputfilter 2.10.x-dev
    - Installation request for zendframework/zend-filter (locked at 2.7.2) -> satisfiable by zendframework/zend-filter[2.7.2].
    - Conclusion: don't install zendframework/zend-form 2.15.x-dev|remove zendframework/zend-inputfilter 2.7.6|install zendframework/zend-inputfilter 2.10.0|install zendframework/zend-inputfilter 2.9.0|install zendframework/zend-inputfilter 2.9.1|install zendframework/zend-inputfilter 2.11.x-dev|install zendframework/zend-inputfilter 2.10.x-dev
    - Conclusion: don't install zendframework/zend-form 2.15.x-dev|don't install zendframework/zend-inputfilter 2.7.6|install zendframework/zend-inputfilter 2.10.0|install zendframework/zend-inputfilter 2.9.0|install zendframework/zend-inputfilter 2.9.1|install zendframework/zend-inputfilter 2.11.x-dev|install zendframework/zend-inputfilter 2.10.x-dev
    - Installation request for zendframework/zend-form ^2.14 -> satisfiable by zendframework/zend-form[2.14.0, 2.14.1, 2.15.x-dev, 2.14.x-dev].
    - Conclusion: remove zendframework/zend-inputfilter 2.7.6|install zendframework/zend-inputfilter 2.10.0|install zendframework/zend-inputfilter 2.9.0|install zendframework/zend-inputfilter 2.9.1|install zendframework/zend-inputfilter 2.11.x-dev|install zendframework/zend-inputfilter 2.10.x-dev
    - zendframework/zend-form 2.14.x-dev requires zendframework/zend-inputfilter ^2.8 -> satisfiable by zendframework/zend-inputfilter[2.10.0, 2.8.0, 2.8.1, 2.8.2, 2.8.3, 2.9.0, 2.9.1, 2.11.x-dev, 2.10.x-dev].
    - Can only install one of: zendframework/zend-inputfilter[2.8.0, 2.7.6].
    - Can only install one of: zendframework/zend-inputfilter[2.8.1, 2.7.6].
    - Can only install one of: zendframework/zend-inputfilter[2.8.2, 2.7.6].
    - Can only install one of: zendframework/zend-inputfilter[2.8.3, 2.7.6].
    - Installation request for zendframework/zend-inputfilter (locked at 2.7.6) -> satisfiable by zendframework/zend-inputfilter[2.7.6].

Installation failed, reverting ./composer.json to its original content.

看起来您已经在旧版本中安装了一些依赖项:

- Conclusion: remove zendframework/zend-filter 2.7.2
- Installation request for zendframework/zend-filter (locked at 2.7.2) -> satisfiable by zendframework/zend-filter[2.7.2].
- Installation request for zendframework/zend-inputfilter (locked at 2.7.6) -> satisfiable by zendframework/zend-inputfilter[2.7.6].

要安装zend-form,您必须更新相互矛盾的依赖项。

您也可以尝试composer require zendframework/zend-form zendframework/zend-filter ...也可以明确更新每个依赖关系,从而添加每个新的依赖项,直到解决。

另外,您可以使用以下选项之一:

--update-with-dependencies      Allows inherited dependencies to be updated, except those that are root requirements.
--update-with-all-dependencies  Allows all inherited dependencies to be updated, including those that are root requirements.

所以:

composer require --update-with-all-dependencies zendframework/zend-form --dev

这是更"刺激性"的选项,因为它还更新了词根依赖性,这可以说是更危险的,因为它们直接影响您的代码,而对于其他更新,理想情况下,您的库应确保它们可以与所选版本一起使用,并且您可以使用。不应该自己直接使用它们。

这可能会更新比您预期的更多依赖关系,并可能导致副作用。确保拥有清洁的GIT历史记录和工作测试套件,以确保更新不会破坏任何内容。您应该可以从输出或Composer.lock中的更改中看到哪些更新的依赖项。这也可以帮助识别用于使用这些依赖项的应用程序部分测试的热点。

相关内容

  • 没有找到相关文章

最新更新