我尝试从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下载了一个包但返回了错误(我不知道他什么时候这样做了,我在vendor文件夹中查找,发现designmodo文件夹仍然存在)。
name
需要具有“供应商名称、正斜杠和包名称”(根据Composer生成的弃用警告)。version
必须是有效的版本字符串(例如1.0.0),尽管它可以是任意的。 - majorobot