安装奏鸣曲电子商务错误

Posted

技术标签:

【中文标题】安装奏鸣曲电子商务错误【英文标题】:install sonata ecommerce ERROR 【发布时间】:2015-02-11 04:00:17 【问题描述】:

我正在尝试在我的 symfony 项目中安装奏鸣曲。

我的 composer.js 我添加:

"require": 
    "php": ">=5.3.3",
    "symfony/symfony": "2.6.*",
    "doctrine/orm": "~2.2,>=2.2.3",
    "doctrine/doctrine-bundle": "~1.2",
    "twig/extensions": "~1.0",
    "symfony/assetic-bundle": "~2.3",
    "symfony/swiftmailer-bundle": "~2.3",
    "symfony/monolog-bundle": "~2.4",
    "sensio/distribution-bundle": "~3.0",
    "sensio/framework-extra-bundle": "~3.0",
    "incenteev/composer-parameter-handler": "~2.0",
    "genemu/form-bundle": "2.2.*",
    "sonata-project/ecommerce": "2.3@dev"
,

接下来执行命令:composer update

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
    - The requested package sonata-project/ecommerce could not be found in any version, there may be a typo in the package name.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

有人知道为什么吗?

谢谢 最好的问候

【问题讨论】:

【参考方案1】:

在你的 composer.json 中试试这个:

"sonata-project/ecommerce": "dev-master"

如果同样的问题仍然存在,试试这个:

"sonata-project/ecommerce": "2.3.*@dev"

【讨论】:

以上是关于安装奏鸣曲电子商务错误的主要内容,如果未能解决你的问题,请参考以下文章

在奏鸣曲电子商务中创建产品 - 没有可用的对象类型

Symfony 2 / Sonata / 电子商务路线问题

Sonata 产品列表错误(Sonata E-Commerce Bundle)

Sonata Admin 嵌套表单

安装奏鸣曲新闻捆绑作曲家错误

抽象类的奏鸣曲管理员:如何按子类属性过滤