【问题标题】:Magento 2 composer not workingMagento 2作曲家不工作
【发布时间】:2018-03-26 01:14:02
【问题描述】:

我正在尝试在 Magento 2 中安装语言包。我运行 composer require eusonlito/magento2-language-es_es,但 composer 给我一个问题:

Do not run Composer as root/super user! See https://getcomposer.org/root for details
Using version ^0.0.5 for eusonlito/magento2-language-es_es
./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
    - Installation request for eusonlito/magento2-language-es_es ^0.0.5 -> satisfiable by eusonlito/magento2-language-es_es[0.0.5].
    - Conclusion: remove magento/framework 100.1.2
    - Conclusion: don't install magento/framework 100.1.2
    - eusonlito/magento2-language-es_es 0.0.5 requires magento/framework 100.0.* -> satisfiable by magento/framework[100.0.10, 100.0.11, 100.0.12, 100.0.13, 100.0.2, 100.0.3, 100.0.4, 100.0.5, 100.0.6, 100.0.7, 100.0.8, 100.0.9].
    - Can only install one of: magento/framework[100.1.2, 100.0.10].
    - Can only install one of: magento/framework[100.1.2, 100.0.11].
    - Can only install one of: magento/framework[100.1.2, 100.0.12].
    - Can only install one of: magento/framework[100.1.2, 100.0.13].
    - Can only install one of: magento/framework[100.1.2, 100.0.2].
    - Can only install one of: magento/framework[100.1.2, 100.0.3].
    - Can only install one of: magento/framework[100.1.2, 100.0.4].
    - Can only install one of: magento/framework[100.1.2, 100.0.5].
    - Can only install one of: magento/framework[100.1.2, 100.0.6].
    - Can only install one of: magento/framework[100.1.2, 100.0.7].
    - Can only install one of: magento/framework[100.1.2, 100.0.8].
    - Can only install one of: magento/framework[100.1.2, 100.0.9].
    - Installation request for magento/framework (locked at 100.1.2) -> satisfiable by magento/framework[100.1.2].


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

我该如何解决这个问题?

谢谢!

【问题讨论】:

标签: magento composer-php


【解决方案1】:

安装eusonlito/magento2-language-es_es 会产生版本问题(在这种情况下是magento/framework)。在这里,您的magento/framework 版本对于magento2-language-es_es 来说太高了。尝试查看magento2-language-es_es需要哪些依赖并更改版本标签。

【讨论】:

    猜你喜欢
    • 2017-04-27
    • 2015-06-13
    • 1970-01-01
    • 2012-08-24
    • 2015-06-14
    • 2020-12-04
    • 2013-07-30
    • 1970-01-01
    相关资源
    最近更新 更多