2012-12-30 26 views
0

能有人知道如何解決這個錯誤:當我嘗試在Symfony的2.1.6安裝FacebookBunleFacebookBundle安裝錯誤

    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. 

我有這樣的錯誤:

php composer.phar update friendsofsymfony/facebook-bundle 

回答

0

而且您的解決方案馬科斯·加西亞不起作用!我使用Symfony 2.1.6,所以我遇到了同樣的問題。

解決的方法是下載您Symfony的版本,而供應商和你做後您更新composer.json:

php composer.phar update 

or 

php composer phar install 

現在一切都將做工非常精細只是不要忘記安裝捲曲和Git了。

謝謝。

1

什麼是你的最小 - 穩定性設置?正如你可以看到Packagist有可用(還)沒有穩定的版本,所以你必須要麼:

  • 修改您的composer.json文件,並在版本號的末尾添加@dev。例如:

    "doctrine/doctrine-fixtures-bundle": "*@dev",
  • 修改您的最低穩定性從stable設置爲dev

+0

我在下面添加了我自己的答案... – Nll