1
我無法使用作曲家更新我的Lumen項目,因爲它無法更新symfony /翻譯。當我在我的本地更新時就好了。當我然後嘗試在我的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
和結果相同。
這是Lumen 5.3項目,所以依賴項來自Lumen。
有沒有人有這個問題的想法? 謝謝!