【发布时间】:2014-11-28 14:23:57
【问题描述】:
我尝试从 github (designmodo/Flat-UI) 添加存储库,使用配置并得到错误No valid composer.json was found in any branch or...、Your requirements could not be resolved to an installable set of packages.、The requested package designmodo/flat-ui could not be found in any version
我在配置中犯了什么错误:
"repositories": {
"flat-ui": {
"type": "package",
"package": {
"name": "designmodo/Flat-UI",
"version": "1.3.0", // Don't know is it important? Where get this number in repo?
"source": {
"url": "https://github.com/designmodo/Flat-UI",
"type": "git",
"reference": "dev-master" // reference is branch name?
}
}
}
},
"require": {
"twbs/bootstrap-sass": "~3.2",
"designmodo/Flat-UI": "dev-master" // branch again (/minimum-stability?)
},
在某些时候composer下载包但返回错误(我不知道他什么时候做的,我在供应商文件夹中查找并且designmodo文件夹在那里)。
【问题讨论】:
标签: git composer-php