Goal
Initiate a Github Page using Jekyll. I'm following the Github Pages docs.
Problem
Upon executing:
bundle exec jekyll 3.8.7 new .
The following error is returned:
fatal: 'jekyll 3.8.7' could not be found. You may need to install the jekyll-3.8.7 gem or a related gem to be able to use this subcommand.
.
Also note that (a) Jekyll 3.8.7 is the current dependency version for Github Pages and (b) the same error is returned if I attempt it for Jekyll 4.1.0.
Context
I tried the recommendation in this SO post -- $ bundle init
, $ bundle add jekyll
-- but that didn't solve my problem.
System details:
$ which ruby
/Users/vishrutarya/.rbenv/shims/ruby
$ ruby -v
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-darwin19]
$ jekyll -v
jekyll 4.1.0
$ which jekyll
/Users/vishrutarya/.gem/ruby/2.7.0/bin/jekyll