Composer - adding git repository without composer.json

后端 未结 2 868
说谎
说谎 2021-02-04 07:24

I try to add repository from github (designmodo/Flat-UI), play with config and get errors No valid composer.json was found in any branch or..., Your requireme

2条回答
  •  孤街浪徒
    2021-02-04 08:01

    It only worked for me removing the label, like this:

    {
            "repositories":[
            {              
                "type": "package",
                "package": {
                  "name": "designmodo/Flat-UI",
                  "version": "1.3.0",
                  "source": {
                    "url": "https://github.com/designmodo/Flat-UI",
                    "type": "git",
                    "reference": "master"
                  }
                }
            }
            ],
            "require": {
                "twbs/bootstrap-sass": "~3.2",
                "designmodo/Flat-UI": "*"
            }, 
    }
    

提交回复
热议问题