title: Rails: Your user account isn't allowed to install to the system RubyGems
body: <p>I am running the command</p>
  
  <pre><code>bundle install
  </code></pre>
  
  <p>in a project folder. In some project folders it will produce an error and in other projects folders it will not produce an error. The error is:</p>
  
  <blockquote>
    <p>Your user account isn't allowed to install to the system RubyGems</p>
  </blockquote>
  
  <p>I know this can be fixed by following the recommended advice:</p>
  
  <blockquote>
  <pre><code>bundle install --path vendor/bundle
  </code></pre>
  </blockquote>
  
  <p>My question is why is the behavior inconsistent?</p>