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

后端 未结 2 1493
天命终不由人
天命终不由人 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: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.

提交回复
热议问题