Sylius安装依赖CmfCreateBundle

时间:2014-10-22 16:13:08

标签: sylius

当我登录时,我收到此错误。

An exception has been thrown during the compilation of a template ("Unable to find file "@CmfCreateBundle/Resources/public/vendor/create/lib/jquery-htmlclean/jquery.htmlClean.js".") in "CmfCreateBundle::includejsfiles-hallo.html.twig".

发生什么事了?在温泉中触摸任何东西,只需按照他们的文档安装Sylius并尝试以管理员身份登录。

1 个答案:

答案 0 :(得分:1)

修复它:

首先,添加" Symfony \ Cmf \ Bundle \ CreateBundle \ Composer \ ScriptHandler :: downloadCreate "你的root composer.json 这样的文件:

"scripts": {
    "post-install-cmd": [
        "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
        "Symfony\\Cmf\\Bundle\\CreateBundle\\Composer\\ScriptHandler::downloadCreate"
    ],
    "post-update-cmd": [
        "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
        "Symfony\\Cmf\\Bundle\\CreateBundle\\Composer\\ScriptHandler::downloadCreate"
    ]
},

其次,运行命令composer run-script post-install-cmd