Jekyll theme could not be found : <p>Following the jekyll documentation found here: <a href="https://jekyllrb.com/docs/themes/" rel="noreferrer">https://jekyllrb.com/docs/themes/</a> I was trying to install and change a gem based theme so I have chosen the jekyll-theme-primer for this and I've run the following command and instructed under the <a href="https://jekyllrb.com/docs/themes/#installing-a-theme" rel="noreferrer">https://jekyllrb.com/docs/themes/#installing-a-theme</a> section:</p>

<pre><code>gem "jekyll-theme-primer"
</code></pre>

<p>and got this error:</p>

<pre><code>ERROR:  While executing gem ... (Gem::CommandLineError)
    Unknown command jekyll-theme-awesome
</code></pre>

<p>After doing some research I've found that I should have added <strong>install</strong> to my query as described here: <a href="https://stackoverflow.com/questions/10863576/while-executing-gem-unknown-command">While executing gem, unknown command</a></p>

<p>After running this:</p>

<pre><code>gem install "jekyll-theme-primer"
</code></pre>

<p>I successfully installed the primer gem based theme and got the following confirmation:</p>

<pre><code>Successfully installed jekyll-theme-primer-0.5.2
Parsing documentation for jekyll-theme-primer-0.5.2
Done installing documentation for jekyll-theme-primer after 0 seconds
1 gem installed
</code></pre>

<p>First question: Was the official documentation incorrect or am I missing something?</p>

<p>I proceeded to run the bundle install command:</p>

<pre><code>bundle install
</code></pre>

<p>and replaced my current minima theme from the _config.yml with the jekyll-theme-primer by adding/replacing this line:</p>

<pre><code>theme: jekyll-theme-primer
</code></pre>

<p>Now when I tried to run either the:</p>

<pre><code>jekyll serve
</code></pre>

<p>or the:</p>

<pre><code>bundle exec jekyll serve
</code></pre>

<p>commands, I get the following error:</p>

<pre><code>jekyll 3.5.2 | Error:  The jekyll-theme-primer theme could not be found.
</code></pre>

<p>So why it can't find the gem theme if the installation was successful?</p>
