有人知道如何解决这个错误:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package friendsofsymfony/facebook-bundle 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.
当我尝试在Symfony 2.1.6中安装FacebookBunle时出现此错误:
php composer.phar update friendsofsymfony/facebook-bundle
答案 0 :(得分:1)
您的最低稳定度设置是多少?正如你在Packagist中看到的那样,还没有可用的稳定版本,所以你要么:
修改您的composer.json文件,并在版本号末尾添加@dev
。例如:
"doctrine/doctrine-fixtures-bundle": "*@dev",
将您的最低稳定度设置从stable
修改为dev
答案 1 :(得分:0)
你的解决方案MarcosGarcía也行不通!我使用了Symfony 2.1.6,所以我遇到了同样的问题。
解决方案是在没有供应商的情况下下载您的Symfony版本,然后在执行之后更新您的composer.json:
php composer.phar update
or
php composer phar install
现在一切都会好起来,别忘了安装Curl和Git。
感谢。