2017-02-17 1 views
1

심포니/번역을 업데이트하지 못해 루멘 프로젝트를 작곡가로 업데이트하는 데 문제가 있습니다. 내 로컬에 내가 composer update 때 업데이 트가 잘. LAMP 서버를 업데이트하려고 할 때 git 저장소가 아니라는 오류가 발생합니다. 그런 다음 다시 설치하라는 메시지가 표시됩니다. yes을 선택하면 이전 버전은 제거되지만 새 버전은 설치할 수 없습니다.작곡가에서 symfony/번역을 업데이트 할 수 없습니다.

$ composer update 
Loading composer repositories with package information 
Updating dependencies (including require-dev) 
Package operations: 0 installs, 2 updates, 0 removals 
    - Updating symfony/translation (v3.1.8 => v3.1.10) Update failed (Failed to execute git show-ref --head -d 

fatal: Not a git repository (or any of the parent directories): .git 
) 
Would you like to try reinstalling the package instead [yes]? yes 
    - Removing symfony/translation (v3.1.8) 


    [RuntimeException]              
    Failed to execute git show-ref --head -d        
    fatal: Not a git repository (or any of the parent directories): .git 


update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]... 

나는 --prefer-dist과 같은 결과를 시도했다.

이것은 루멘 5.3 프로젝트이므로 루멘의 의존성입니다.

누구에게 어떤 문제가 있는지 알고 있습니까? 감사합니다.

답변

0

내 공급 업체 디렉토리 rm -rf vendor/*을 삭제하고 모든 항목을 다시 설치하고 composer install을 설치하고 올바르게 설치하고 올바르게 작동합니다.

솔루션은, 그러나 누구든지 일어날 수있는 것을 설명 할 수 있다면 왜 그것을 업데이트 할 수 없습니다

- Installing symfony/translation (v3.1.10) Downloading: 100%

?

관련 문제