我正在尝试使用MopaBootstrapBundle将Twitter Bootstrap与我的Symfony2项目集成,我正在使用composer来管理我的供应商库。
我遇到的最初问题是mopa / bootstrap-bundle需要composer-bridge,所以我按照这里的说明https://github.com/phiamo/MopaBootstrapBundle/issues/345
但是我仍然在我的日志中收到以下消息
安装mopa / composer-bridge(dev-master master) 克隆大师
[RuntimeException的] 无法通过git,https和http协议克隆http://github.com/phiamo/mopacomposerbridge.git,中止。
GIT中://github.com/phiamo/mopacomposerbridge.git
致命的:远程错误:
找不到存储库。
我尝试将最低稳定性更改为dev但没有成功,但我可以通过浏览器访问文件,但不能通过命令行访问,并且已安装其他软件包。
更新:完整的composer.json
{
"name": "symfony/framework-standard-edition",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": { "": "src/" }
},
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.1.*",
"doctrine/orm": ">=2.2.3,<2.4-dev",
"doctrine/doctrine-bundle": "1.0.*",
"twig/extensions": "1.0.*@dev",
"symfony/assetic-bundle": "2.1.*",
"symfony/swiftmailer-bundle": "2.1.*",
"symfony/monolog-bundle": "2.1.*",
"sensio/distribution-bundle": "2.1.*",
"sensio/framework-extra-bundle": "2.1.*",
"sensio/generator-bundle": "2.1.*",
"jms/security-extra-bundle": "1.2.*",
"jms/di-extra-bundle": "1.1.*",
"kriswallsmith/assetic": "1.1.*@dev",
"twitter/bootstrap": "dev-master",
"knplabs/knp-paginator-bundle": "dev-master",
"knplabs/knp-menu-bundle": "*",
"craue/formflow-bundle": "dev-master",
"jlong/sass-twitter-bootstrap": "dev-master"
},
"repositories": [
{
"type": "package",
"package": {
"name": "mopa/composer-bridge",
"version": "dev-master",
"source": {
"url": "https://github.com/phiamo/mopacomposerbridge.git",
"type": "git",
"reference": "master"
},
"dist": {
"url": "https://github.com/phiamo/mopacomposerbridge/zipball/master",
"type": "zip"
}
}
},
{
"type":"package",
"package": {
"version":"dev-master",
"name":"jlong/sass-twitter-bootstrap",
"source": {
"url":"https://github.com/jlong/sass-twitter-bootstrap.git",
"type":"git",
"reference":"master"
},
"dist": {
"url":"https://github.com/jlong/sass-twitter-bootstrap/archive/master",
"type":"zip"
}
}
}
],
"scripts": {
"post-install-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
],
"post-update-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
]
},
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web"
}
}
答案 0 :(得分:1)
经过大约6到8个小时的不同组合战斗后,它突然发挥作用,所以我怀疑这可能是由于从我的盒子或类似的东西连接到Github的问题引起的,但它没有用任何问题