我克隆了一个 git 项目,然后运行composer update
命令,我在 composer 上收到此错误消息:
- Installing symfony/symfony (v2.2.4)
Downloading: 100%
[UnexpectedValueException]
'E:\Sites\myapp-api\vendor/symfony/symfony/268ac81f41a8a73a56ef570d9e7980
27.4' is not a zip archive.
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock]
[--no-custom-installers] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [
-o|--optimize-autoloader] [packages1] ... [packagesN]
我尝试删除 composer.lock 并再次运行 composer update 命令,仍然返回相同的错误。
我也尝试composer update symfony/symfony
使用 --prefer-dist 运行,但仍然返回相同的错误消息“不是 zip 存档”。
如何解决这个问题呢?
我试了又试,现在有3项下载symfony/symfony
- Installing symfony/symfony (v2.2.4)
Downloading: 100%
- Installing symfony/symfony (v2.2.4)
Downloading: 100%
- Installing symfony/symfony (v2.2.4)
Downloading: 100%
[UnexpectedValueException]
'E:\Sites\trainme-api\vendor/symfony/symfony/698bb2e6e680e6c886eb5c70f5d93e
97.4' is not a zip archive.