error: "fatal: I don't handle protocol ``git` when using bundle install

后端 未结 2 1492
天命终不由人
天命终不由人 2021-01-13 11:57

I have the following line in my GemFile :

gem \'rails\', :git => \'git://github.com/rails/rails.git\'

I get the following error:



        
相关标签:
2条回答
  • 2021-01-13 12:06

    It's the issue with the newer version of the Bundler 1.0.14.

    I needed to revert to 1.0.13 to make it work. They apparently had some issues dealing with escape characters in Windows.

    See here > https://github.com/carlhuda/bundler/issues/1212

    0 讨论(0)
  • 2021-01-13 12:21

    Try this instead in your Gemfile:

    gem 'rails', :git => "https://github.com/rails/rails.git"
    

    git:// can sometimes be blocked by firewalls. Though in your case that's probably not the issue. Try double quotes instead.

    0 讨论(0)
提交回复
热议问题