Initiate a Github Page using Jekyll. I'm following the Github Pages docs.
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.
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
For me, adding underscores did the trick.
I installed version 3.8.7 manually. With gem list, you can check if it is
actually installed.
Then i used bundle exec jekyll _3.8.7_ new . --force and it worked.
Ran into the same issue on MacOS. This is what I ended up doing:
blog
bundle init
gem "jekyll", "= 3.8.7"
bundle i
bundle exec jekyll -v
docs/ directory in the same folderbundle exec jekyll new .
bundle i again in docs/ directorybundle exec jekyll serve in the docs/ directoryI hope this helps!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With