2014-01-22 59 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