7

我尝试使用以下命令在 Ubuntu 上使用 composer 创建一个 Symfony2 项目:

php composer.phar create-project symfony/framework-standard-edition projectpath

我得到这个错误

Installing symfony/framework-standard-edition (dev-master 506ffaab8d8474db2512fca879ca4b9877616a1e)
  - Installing symfony/framework-standard-edition (dev-master master)
    Cloning master

Created project in projectpath/
Loading composer repositories with package information
Installing dependencies from lock file
Your lock file is out of sync with your composer.json, run "composer.phar update" to update dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for symfony/symfony == 2.1.9999999.9999999-dev -> satisfiable by symfony/symfony 2.1.x-dev.
    - Can only install one of: symfony/symfony dev-master, symfony/symfony 2.1.x-dev.
    - Installation request for symfony/symfony == 9999999-dev -> satisfiable by symfony/symfony dev-master.

composer.phar 更新也返回错误。

有任何想法吗?

4

1 回答 1

14

尝试指定您想要的确切版本,它现在已在 symfony-standard 存储库中修复,这应该可以工作:

 php composer.phar create-project symfony/framework-standard-edition projectpath 2.1.x-dev
于 2012-09-07T08:56:47.767 回答