Giter Site home page Giter Site logo

Could not find gem github-pages about starter HOT 9 CLOSED

prose avatar prose commented on June 18, 2024 3
Could not find gem github-pages

from starter.

Comments (9)

six-ten avatar six-ten commented on June 18, 2024 128

this worked for me
specify the version for gem "github-pages" in GEMFILE:
gem "github-pages", "~> 203", group: :jekyll_plugins
replace the version ( 203 ) above to the one from https://pages.github.com/versions/
then run:
bundle update jekyll
followed by :
bundle install
test site by launching it locally :
bundle exec jekyll serve

from starter.

tonyatoms avatar tonyatoms commented on June 18, 2024 10

I was able to resolve this (and a subsequent issue) by adding a Gemfile with these contents:

source 'https://rubygems.org'
gem 'github-pages'
gem 'rdiscount'

and then running bundle install

from starter.

dereklieu avatar dereklieu commented on June 18, 2024 1

@tonyatoms hey, thanks for raising this. It looks like we should actually just retire the use of rdiscount and allow jekyll to use it's default markdown engine, kramdown.

https://blog.github.com/2016-02-01-github-pages-now-faster-and-simpler-with-jekyll-3-0/

This should also make the build simpler.

from starter.

Rubix982 avatar Rubix982 commented on June 18, 2024 1

Worked perfectly. Thank you, @the-po .

from starter.

brando90 avatar brando90 commented on June 18, 2024

I get a different issue:

$ bundle update github-pages
Could not find gem 'github-pages'.

any idea how to solve it?

from starter.

dereklieu avatar dereklieu commented on June 18, 2024

Do you have the github-pages gem installed? I'm not sure but I'd bet you would need to have it installed before it could be updated.

from starter.

yuqli avatar yuqli commented on June 18, 2024

Thanks @six-ten for solving my problems!

from starter.

AveryQi115 avatar AveryQi115 commented on June 18, 2024

if you have installed jekyll 4.1.1 before create your github pages project
and therefore there might be some conflicts between existing gems and gems needed for github pages.

@six-ten 's answer works fine but needs to change the command:
bundle update jekyll
to:
bundle update
so it will build your snapshot from scratch.

from starter.

vaibhavsabnis avatar vaibhavsabnis commented on June 18, 2024

there are some version conflicts when installing ruby and bundler (which in turn installs jekyll 4.2.0 - as of Dec 30 2020). This version conflicts with what github needs - so @six-ten comments may not work out of the box.
Below is what i did to resolve:

  1. updated the version of github-pages so that the gem is correctly updated (209 as of this writing)
  2. Ran following cmd from the local repo root
    --> bundle update github-pages
    --> bundle install
    --> bundle update

from starter.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.