C:\wamp64\www\zend_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.
答案 0 :(得分:0)
您似乎已经在旧版本中安装了某些依赖项:
- 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中的更改中看到哪些依赖项已更新。这也可以帮助确定热点,以测试使用这些依赖项的应用程序部分。