php – 从composer创建Symfony2项目时出错

前端之家收集整理的这篇文章主要介绍了php – 从composer创建Symfony2项目时出错前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我尝试使用命令在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 update也会返回错误.

有任何想法吗?

尝试指定您想要的确切版本,现在已在symfony-standard repo中修复,这应该有效:
PHP composer.phar create-project symfony/framework-standard-edition projectpath 2.1.x-dev
原文链接:https://www.f2er.com/php/135711.html

猜你在找的PHP相关文章