mirror of
https://github.com/BretFisher/jekyll-serve.git
synced 2026-08-03 11:18:37 -04:00
`raise_not_found!': Could not find gem 'github-pages' in locally installed gems. #39
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Ilias-D-Sarris on GitHub (Sep 21, 2023).
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.
@BretFisher commented on GitHub (Sep 21, 2023):
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-pagesgem (which is commented out in the standard Gemfile that anewcommand creates). My only suggestion is to be sure your directory on the host WSL2 is truly empty when you runnew.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
@Ilias-D-Sarris commented on GitHub (Sep 22, 2023):
Thanks Bret, will try that.
Cheers from Thessaloniki.