title: Make sure that `gem install byebug -v '11.1.3' --source 'https://rubygems.org/'` succeeds before bundling
body: <p>I am trying to install the byebug gem for ruby on visual studio code and every time I try to use bundle install to install it, it gives me this error:</p>
  <pre><code>Errno::EACCES: Permission denied @ rb_sysopen -
  /home/ja12tk/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/CHANGELOG.md
  An error occurred while installing byebug (11.1.3), and Bundler cannot continue.
  Make sure that `gem install byebug -v '11.1.3' --source 'https://rubygems.org/'` succeeds
  before bundling.
  </code></pre>
  <p>This is what the Gemfile says:</p>
  <pre><code>source &quot;https://rubygems.org&quot;
  
  gem &quot;byebug&quot;
  gem &quot;rspec&quot;, &quot;~&gt; 3.2.0&quot;
  </code></pre>
  <p>Along with the Gemfile.lock</p>
  <pre><code>GEM
    remote: https://rubygems.org/
    specs:
      byebug (11.1.3)
      diff-lcs (1.4.4)
      rspec (3.2.0)
        rspec-core (~&gt; 3.2.0)
        rspec-expectations (~&gt; 3.2.0)
        rspec-mocks (~&gt; 3.2.0)
      rspec-core (3.2.3)
        rspec-support (~&gt; 3.2.0)
      rspec-expectations (3.2.1)
        diff-lcs (&gt;= 1.2.0, &lt; 2.0)
        rspec-support (~&gt; 3.2.0)
      rspec-mocks (3.2.1)
        diff-lcs (&gt;= 1.2.0, &lt; 2.0)
        rspec-support (~&gt; 3.2.0)
      rspec-support (3.2.2)
  
  PLATFORMS
    ruby
  
  DEPENDENCIES
    byebug
    rspec (~&gt; 3.2.0)
  
  BUNDLED WITH
     2.1.4
  </code></pre>
  <p>I have even tried using &quot;gem install byebug&quot; and it give me this error:</p>
  <pre><code>ERROR:  While executing gem ... (Gem::FilePermissionError)
      You don't have write permissions for the /var/lib/gems/2.7.0 directory.
  </code></pre>
  <p>Any help would be greatly appreciated</p>