0

嗨,我想安装这个包:

https://packagist.org/packages/knplabs/knp-paginator-bundle

"knplabs/knp-paginator-bundle": "2.3.*@dev"

但我不想用 composer.phar 更新来搞砸什么,因为上次当我没记错时它杀死了 FOS 包中的一些包功能。

所以我只做了::

sudo php composer.phar install

但我得到了这个错误:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for symfony/framework-standard-edition 2.1.x-dev -> satisfiable by symfony/framework-standard-edition[2.1.x-dev].
    - symfony/framework-standard-edition 2.1.x-dev requires knplabs/knp-paginator-bundle 2.3.*@dev -> no matching package found.

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.

这些是我对 symfony 和 php 的要求。应该够了吧?那请问有什么问题?

"require": {
    "php": ">=5.3.3",
    "symfony/symfony": "2.1.*",
4

3 回答 3

0

add the following line in your composer and update composer

"knplabs/knp-paginator-bundle": "dev-master"

于 2013-10-07T06:56:33.460 回答
0

我也一样。然后我尝试使用php composer.phar 更新,它可以工作。

希望这会有所帮助!

于 2014-02-13T02:38:33.743 回答
0

尝试“最低稳定性”:“开发”

见: http: //getcomposer.org/doc/articles/troubleshooting.md

于 2013-10-06T11:10:03.607 回答