2017-02-17 7 views
1

symfony/translationsの更新に失敗したため、私のLumenプロジェクトを作曲者にアップデートする際に問題があります。私のローカルの私はcomposer updateそれはちょうど良い更新します。私がLAMPサーバーで更新しようとすると、gitリポジトリではないというエラーが表示されます。その後、再インストールを求められます。私はyesを選択し、古いものを削除しますが、新しいものをインストールすることはできません。作者からsymfony/translationsを更新できません

$ 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%

関連する問題