Composer安装不会创建自动加载文件

时间:2014-07-06 11:57:04

标签: php composer-php

在Windows Git bash shell中,我已完成composer install --dev但它失败了:

ZipArchive::extractTo(vendor/composer/2c4b3baf/EHER-phpunit-all-in-one-fa8cfdd\src\phpunit-mock-objects\Tests\MockObject/class_implementing_inter
face_dont_call_parent_constructor.phpt): failed to open stream: No such file or directory

autoload.php也无处可见。通常它应该在供应商文件夹的根目录...

Windows上的Composer是否存在已知问题,或者此问题是否有解决方法?

"require-dev": {
        "codeception/codeception": "*",
        "codeception/aspect-mock": "*"
    },

1 个答案:

答案 0 :(得分:0)

尝试

composer install --prefer-source