`raise_not_found!': Could not find gem 'github-pages' in locally installed gems.
Ilias-D-Sarris opened this issue · 2 comments
Hello Bret,
Today I tried using your Jekyll image and right after issuing:
docker run -v $(pwd):/site bretfisher/jekyll new .
in an empty folder I am getting the following error (warning?):
/usr/local/lib/ruby/site_ruby/3.1.0/bundler/resolver.rb:304:in `raise_not_found!': Could not find gem 'github-pages' in locally installed gems. (Bundler::GemNotFound)
Since I need to use Github Pages this error is concerning.
Note that I tried it both in Windows 10 and in WSL 2, same error. (In Windows I issued "docker run -v .:/site bretfisher/jekyll new .")
I have little knowledge of Docker, Ruby or Jekyll, is this something that can be (fairly) easy to fix?
TIA for the help mate. Cheers!
Ilias.
I ran your first command in a blank directory on linux and it all worked fine. I've not seen that error about the github-pages
gem (which is commented out in the standard Gemfile that a new
command creates). My only suggestion is to be sure your directory on the host WSL2 is truly empty when you run new
.
If you're not a Docker person, I'd recommend just following the WSL (Windows Subsystem for Linux) instructions on Jekyll's getting started guide https://jekyllrb.com/docs/installation/windows/#installation-via-bash-on-windows-10
Thanks Bret, will try that.
Cheers from Thessaloniki.