错误:“致命:我在使用bundle install时不处理协议“git`
我的GemFile中有以下行:
gem 'rails', :git => 'git://github.com/rails/rails.git'
我收到以下错误:
Fetching git://github.com/rails/rails.git fatal: I don't handle protocol ''git' Git error: command `git clone 'git://github.com/rails/rails.git'...
但是当我运行gem install 'rails'
它运行正常。
基本上在运行clone命令时,bundler会在git://地址周围添加单引号,从而引发错误。
我在Windows上工作。 任何想法为什么我收到此错误?
干杯
在你的Gemfile
尝试这个:
gem 'rails', :git => "https://github.com/rails/rails.git"
git://
有时会被防火墙阻止。 虽然在你的情况下可能不是问题。 请尝试使用双引号。
这是Bundler 1.0.14的新版本的问题。
我需要恢复到1.0.13以使其工作。 他们显然在处理Windows中的转义字符时存在一些问题。
- 试图用Rails 3将gem商品化为捆绑包,但是Gem没有Gemspec
- 在我的mac上更新gem – 安装了两个版本的bundler
- 通过要求gem:path或:git来实现LoadError
- 是否有任何Haskell土地相当于Ruby-land的Bundler等。 al,如果没有,如何设计一个如此结构的项目?
- 为什么我得到无法在任何来源中找到multi_json-1.3.1?
- 无法使用JRuby构建gem原生扩展
- 使用$ sudo bundle exec …引发’bundle:command not found’错误
- 在windows上开发,在heroku上运行独角兽
- 在gemfile中使用“:platforms =>”工作吗?