无法从作曲家更新 symfony/translations
Unable to update symfony/translations from composer
我无法使用 composer 更新我的 Lumen 项目,因为它无法更新 symfony/translations。当我在本地 composer update
时,它更新得很好。然后当我尝试在我的 LAMP 服务器上更新时,我得到一个错误,它不是 git 存储库。然后它要求重新安装。我选择 yes
,它会删除旧的,但无法安装新的。
$ 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。
有人知道问题出在哪里吗?
谢谢!
我清除了我的供应商目录 rm -rf vendor/*
并重新安装了所有内容 composer install
并且所有内容都已安装并正常工作。
- Installing symfony/translation (v3.1.10) Downloading: 100%
这是一个解决方案,但是否有人可以解释可能发生的情况以及无法更新的原因?
我无法使用 composer 更新我的 Lumen 项目,因为它无法更新 symfony/translations。当我在本地 composer update
时,它更新得很好。然后当我尝试在我的 LAMP 服务器上更新时,我得到一个错误,它不是 git 存储库。然后它要求重新安装。我选择 yes
,它会删除旧的,但无法安装新的。
$ 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。
有人知道问题出在哪里吗? 谢谢!
我清除了我的供应商目录 rm -rf vendor/*
并重新安装了所有内容 composer install
并且所有内容都已安装并正常工作。
- Installing symfony/translation (v3.1.10) Downloading: 100%
这是一个解决方案,但是否有人可以解释可能发生的情况以及无法更新的原因?