title: Bundler::HTTPError Could not fetch specs from https://rubygems.org/
body: <p>When I run </p>
  
  <pre><code>rails new project
  </code></pre>
  
  <p>to make new project in Ruby on rails on my PC.</p>
  
  <p>It works fine. 
  Then I run <code>bundle install</code> and it throws this error:</p>
  
  <pre><code>create  vendor/assets/stylesheets/.keep  
  run  bundle install 
  </code></pre>
  
  <blockquote>
    <p>Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will
        break this application for all non-root users on this machine.</p>
    
    <p>Fetching source index from <a href="https://rubygems.org/" rel="nofollow noreferrer">https://rubygems.org/</a> </p>
    
    <p>Retrying source fetch due to error (2/3): Bundler::HTTPError Could not fetch specs from https:// rubygems.org/ </p>
    
    <p>Retrying source fetch due to error (3/3): Bundler::HTTPError Could not fetch specs from https:// rubygems.org/</p>
  </blockquote>
  
  <p>When I try run my project it throws this error:</p>
  
  <blockquote>
    <p>c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.6.2/lib/bundler/resolver.rb:352:in
        `resolve': Could not find gem 'rails (= 4.1.1) x86-mingw32' in the
        gems available on this machine. (Bundler::GemNotFound)</p>
  </blockquote>
  
  <p>Can somebody help me?</p>