Symfony2 Composer Install

前端 未结 4 2002
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-13 13:20

I am trying to install Symfony 2.1.3 (latest). I am running composer and installs everything okay. The only error that I get is:

Script Sens         


        
4条回答
  •  深忆病人
    2021-01-13 13:53

    I had this same issue for a while and after hours of face to brick wall pounding I realized... I have a .gitmodule in my project, and on initial checkout these submodules are NOT initialized and as such are not there for your composer to update, which results in the above error.

    Make sure you run the following

    git submodule update --init src/Acme/Sadness/Bundle
    

    of course replace src/Acme/Sadness/Bundle with YOUR project namespace.

    Hope this helps someone not go through the same pain I just did.

提交回复
热议问题