2017-12-28 34 views
-2

작곡가를 설치하려고 할 때 작곡가 설치 중에 다음 오류가 발생합니다. 아무도 저에게 도움을 요청할 수는 없습니다. 감사합니다. 감사합니다.작곡가 설치 프로덕션 환경에서 다음과 같은 오류가 발생했습니다.

Problem 1 
- Installation request for doctrine/annotations v1.5.0 -> satisfiable by doctrine/annotations[v1.5.0]. 
- doctrine/annotations v1.5.0 requires php ^7.1 -> your PHP version (7.0.22) does not satisfy that requirement. 
    Problem 2 
- Installation request for doctrine/cache v1.7.1 -> satisfiable by doctrine/cache[v1.7.1]. 
- doctrine/cache v1.7.1 requires php ~7.1 -> your PHP version (7.0.22) does not satisfy that requirement. 
Problem 3 
- Installation request for doctrine/collections v1.5.0 -> satisfiable by doctrine/collections[v1.5.0]. 
- doctrine/collections v1.5.0 requires php ^7.1 -> your PHP version (7.0.22) does not satisfy that requirement. 
Problem 4 
- Installation request for doctrine/common v2.8.1 -> satisfiable by doctrine/common[v2.8.1]. 
- doctrine/common v2.8.1 requires php ~7.1 -> your PHP version (7.0.22) does not satisfy that requirement. 
Problem 5 
- Installation request for doctrine/dbal v2.6.2 -> satisfiable by doctrine/dbal[v2.6.2]. 
- doctrine/dbal v2.6.2 requires php ^7.1 -> your PHP version (7.0.22) does not satisfy that requirement. 
Problem 6 
- Installation request for doctrine/instantiator 1.1.0 -> satisfiable by doctrine/instantiator[1.1.0]. 
- doctrine/instantiator 1.1.0 requires php ^7.1 -> your PHP version (7.0.22) does not satisfy that requirement. 
Problem 7 
- doctrine/instantiator 1.1.0 requires php ^7.1 -> your PHP version (7.0.22) does not satisfy that requirement. 
- phpunit/phpunit-mock-objects 3.4.4 requires doctrine/instantiator ^1.0.2 -> satisfiable by doctrine/instantiator[1.1.0]. 
- Installation request for phpunit/phpunit-mock-objects 3.4.4 -> satisfiable by phpunit/phpunit-mock-objects[3.4.4]. 
+1

에 대한 작곡가 명령 으로 composer.json에게

사용 스위치 --ignore-platform-reqs을 편집하는 것보다 더 간단 솔루션입니다. 22) 그 요구 사항을 만족하지 않는다'당신에게 불분명하다? –

+0

PHP 버전 7.1 이상이 필요합니다. –

답변

0

은 어느 당신의 composer.lock은 PHP7.1를 실행하는 컴퓨터에서 만들어졌다,하지만 자극 서버는 7.0.22를 실행하거나, (내 생각) 교리 버전 제약이 너무 높다. 먼저 이것을 우회하려면 작곡가에게 다음을 추가하십시오 .json : ... "config": { "platform": { "php": "7.0.22" } } ... 을 실행하고 결과로 작성된 composer.lock 파일을 체크인하십시오. 이 방법을 사용하면 작곡가가 자신의 제작 버전 용 패키지를 선택하도록 강요합니다.이 버전은 개발자 버전 (7.1)과 호환되어야합니다. > 당신의 PHP 버전 (7.0 -

+0

@ Thomos, composer.json에서 설정을 변경하고 계속 업로드하면 여전히 같은 오류가 표시됩니다. – MMR

+0

composer.json 및 composer.lock을 어딘가에 붙여 넣을 수 있습니까? –

0

그것은 'PHP^7.1을 필요로의 일부 예를

composer update --ignore-platform-reqs