2014-01-22 23 views
2

我使用symfony的2.4.0,我想安裝EWZRecaptchaBundle來驗證碼添加到我的形式安裝EWZRecaptchaBundle,所以我說這行composer.json在Symfony2中

"require": { 
     //... 
     "excelwebzone/recaptcha-bundle": "2.0.*" 
     //... 
    } 

我跑此命令

composer update 

不過,這並不成功安裝包,這是錯誤消息我得到的,在命令

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

    Problem 1 
    - The requested package excelwebzone/recaptcha-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 min 
imum-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. 

根據記錄,這是GitHub的鏈接,我要安裝的軟件包:

https://github.com/excelwebzone/EWZRecaptchaBundle

任何想法?

注:

  • 我使用命令行作爲管理員。
  • 我與這條線還測試:「」 excelwebzone /驗證碼束「:‘DEV-主’
  • 相同的結果時,我設定的最小穩定性設置爲:‘dev的’或‘穩定的’

回答

2

嘗試使用此要求:

"excelwebzone/recaptcha-bundle": "dev-master" 

因爲2.0.x-dev正在開發的或使用舊的穩定版本:

"excelwebzone/recaptcha-bundle": "v1.0.0" 
+0

我已經和DEV-主審判,白白...我會試試「v1.0.0」 – SmootQ

+1

「excelwebzone/recaptcha-bundle」:「*」'? –

+0

我在等待「v1.0.0」...我會嘗試「*」。謝謝+1 – SmootQ

1

維克托你是完全正確的。但是有些可能仍然會遇到版本控制問題。 除非您使用確切的1.0版本,否則您仍然會遇到問題。

這樣算下來後要求:

composer require "excelwebzone/recaptcha-bundle" 

你將不得不做添加1.0版本,如:

Please provide a version constraint for the excelwebzone/recaptcha-bundle requirement: 1.0.* 
+0

謝謝我親愛的朋友,+ 1:D – SmootQ