Installation Swiftmailer错误生成器安装

Installation Swiftmailer错误生成器安装,installation,composer-php,swiftmailer,Installation,Composer Php,Swiftmailer,我正在通过“composer install”安装composer依赖项。 它下载了很多软件包,但在swiftmailer之后,它给了我一个错误 [UnexpectedValueException] 'C:\Users\DELL\Downloads\laravel-4\vendor/swiftmailer/swiftmailer/72e34d......54c82f.1' is not a zip archive. 这意味着什么?对我来说,这个问题的发生是因为order composer正在

我正在通过“composer install”安装composer依赖项。 它下载了很多软件包,但在swiftmailer之后,它给了我一个错误

[UnexpectedValueException]
'C:\Users\DELL\Downloads\laravel-4\vendor/swiftmailer/swiftmailer/72e34d......54c82f.1' is not a zip archive. 

这意味着什么?

对我来说,这个问题的发生是因为order composer正在安装文件。 对我有效的解决方法是进入\vendor\composer\autoload_real.php并注释掉以下行

require $vendorDir . '/swiftmailer/swiftmailer/lib/swift_required.php';

然后再次运行composer

使用--prefere source选项运行composer安装,已为我修复此问题。

在\vendor\composer中没有名为“autoload\u real.php”的文件。在\vendor\composer中只有一个文件名为“installed.json”。此文件包含有关所有已安装软件包的信息。在该文件中没有您提到的行。