習慣使用Composer安裝Composer未知軟件包的Symfony2。 Twitter的/引導配置爲:使用Composer爲Symfony2安裝Jasny/Bootstrap
"repositories": [
{
"type": "package",
"package": {
"name": "twitter/bootstrap",
"version": "2.3.0",
"source": {
"type": "git",
"url": "https://github.com/twitter/bootstrap",
"reference": "v2.3.0"
}
}
}
],
但Jasny /引導這個
{
"type": "package",
"package": {
"name": "jasny/bootstrap",
"version": "2.3.0-j4",
"source": {
"type": "git",
"url": "https://github.com/jasny/bootstrap",
"reference": "2.3.0-j4"
}
}
}
失敗,此
[UnexpectedValueException]
Could not parse version constraint 2.3.0-j4: Invalid version string "2.3.0-j4"
如何解決? 2.3.0-j4是最新版本。 「-j4」是不是簡單的非標準作曲家?
不幸的是,嘗試2.3。*和> = 2.3作爲建議導致類似的錯誤。
[Composer\Repository\InvalidRepositoryException]
A repository of type "package" contains an invalid package definition: Undefined index: version
Invalid package definition:
{"name":"jasny\/bootstrap","version":"2.3.*","source":{"type":"git","url":"https:\/\/github.com\/jasny\/bootstrap","reference":"2.3.*"}}
您的放置版本是無效的:http://getcomposer.org/doc/04-schema.md#version但不要問我要改變什麼,我不知道:) – cheesemacfly 2013-02-21 17:46:37