【发布时间】:2014-10-21 05:33:31
【问题描述】:
希望有人能帮我解决这个问题。
我的项目(在 github https://github.com/irvingswiftj/iceMarkt 上)在运行 composer install 时,似乎运行顺利,直到运行更新后命令。我最终遇到以下错误(添加参数 -vvv 时):
Updating the "app/config/parameters.yml" file
Could not open input file: bin/console
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-update-cmd event terminated with an exception
[RuntimeException]
An error occurred when executing the "'cache:clear --no-warmup'" command.
如果我现在浏览我的项目目录,我可以看到 bin/console 从未创建!
【问题讨论】:
-
你使用的是 Symfony3 结构吗?在这个新结构中,
app/console已移至bin/console。所以看看你是否有app/console...和AFAIK,有一个选项可以告诉作曲家你正在使用哪种结构 -
是的,我使用的是 symfony3 结构。我没有检查应用程序/控制台,但它也不存在。
-
我怀疑您从未将 bin 目录检查到 github?您最好的选择可能是使用 s3 结构创建一个新项目,然后比较文件系统。您可能缺少的不仅仅是 bin 目录。我在 github 中也没有看到 web 目录。
-
那么,当您使用 Sf3 结构时,您的作曲家的额外配置中是否有 symfony-var-dir 指令?
-
Cerad,你说得对,我忘了提交 bin 目录,我只是假设执行 composer install 甚至会创建控制台文件
标签: php symfony composer-php