swi*_*fty 7 php symfony composer-php
希望有人可以帮我解决这个问题.
在运行composer install时,我的项目(在github https://github.com/irvingswiftj/iceMarkt上)似乎顺利运行,直到运行post update命令.我最终得到以下错误(添加param -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.
Run Code Online (Sandbox Code Playgroud)
如果我现在浏览我的项目目录,我可以看到从未创建bin/console!
swi*_*fty 10
假设在我的下一个作曲家安装中创建了可执行控制台文件,我删除了bin目录.我错了!不要gitignore您的bin/composer文件,并确保如果您使用symfony 3文件夹结构,则没有.gitignore用于symfony 2文件夹结构.
我遇到了同样的问题,因为我习惯于将bin目录添加到我的 .gitignore 文件中,因为在 Symfony2 中所有 bin 文件(包括来自其他供应商的文件)都放在该文件夹中,但在 Symfony3 中并非如此,所以我们可以将 bin 目录添加到我们的代码存储库中。
您可以解决安装新应用程序(使用 symfony 安装程序)并将 bin 目录从这个新项目复制到您自己的项目的问题。