2015-02-05 6 views
2

나는 작곡가를 통해 Braintree 구성 요소를 성공적으로 설치했으며 이제 작곡가 인 yii2-braintree도 설치하려고합니다. 작곡가를 통해 yii2-braintree 설치시 문제가 발생했습니다.

내가 그것을 권장처럼, 삽입, 내 composer.jsonrequire 섹션에서 "bryglen/yii2-braintree": "*" 라인 :

"require": { 
    "php": ">=5.4.0", 
    "yiisoft/yii2": "*", 
    "yiisoft/yii2-bootstrap": "*", 
    "yiisoft/yii2-swiftmailer": "*", 
    "braintree/braintree_php": "2.37.0", 
    "bryglen/yii2-braintree": "*" 
}, 

그 후, 나는 composer update을 실행하고 결과였다 :

sudo composer update 
Loading composer repositories with package information 
Updating dependencies (including require-dev)                                           Your requirements could not be resolved to an installable set of packages. 

    Problem 1 
    - The requested package bryglen/yii2-braintree 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. 

내가 뭘 잘못하고 있니? 레포에 문제가 있습니까?

+1

아무 문제없이 지금 설치했습니다. 'composer.json' :''minimum-stability ":"dev "'에서이 설정을 가지고 있습니까? 그것이없는 것처럼 보입니다. 이 확장 프로그램에는 아직 안정적인 릴리스가 없습니다. – arogachev

+0

@arogachev 네, 맞습니다. 그러나 이제 또 다른 오류가 나타났습니다. 설치된 ** braintree_php ** 버전은 무엇입니까? 마지막 ([2.37.0] (https://developers.braintreepayments.com/javascript+php/sdk/server/setup))을 설치하고 yii2-braintree를 설치하려면 2.30.0이 필요합니다. "일치하는 패키지가 없습니다"라는 내용이 있습니다. –

+1

'yii2-braintree' 만 설치하면'braintree_php'가 의존성으로 설치되었습니다. 예, 버전은 정적입니다 -'2.30.0'. – arogachev

답변

3

당신이 당신의 composer.json에서이 설정되어 있는지 확인하십시오 : 누락 된 것처럼

"minimum-stability": "dev" 

보인다. 이 확장 프로그램에는 아직 안정적인 릴리스가 없습니다.

설치 yii2-braintree, braintree_php은 정적 버전 - 2.30.0에 종속으로 설치됩니다.

관련 문제