github / pages-gem

A simple Ruby Gem to bootstrap dependencies for setting up and maintaining a local Jekyll environment in sync with GitHub Pages
http://pages.github.com
MIT License
1.82k stars 349 forks source link

Can't serve website due to sass-embedded version #913

Closed davidskeck closed 5 months ago

davidskeck commented 5 months ago

This issue affects

What did you do (e.g., steps to reproduce)

Followed the steps to install ruby here: https://jekyllrb.com/docs/installation/ubuntu/

Install Jekyll by following the guide online for Ubuntu.

  1. gem install bundler jekyll
  2. jekyll new my-awesome-site
  3. cd my-awesome-site
  4. bundle exec jekyll serve

What did you expect to happen?

The site would be built and served locally.

What happened instead?

I received the error message bellow.

Could not find compatible versions

Because every version of jekyll depends on jekyll-sass-converter >= 2.0, < 4.0
  and every version of jekyll-sass-converter depends on sass-embedded ~> 1.54,
  every version of jekyll requires sass-embedded ~> 1.54.
So, because sass-embedded ~> 1.54 could not be found in locally installed gems for any resolution platforms (x86_64-linux)
  and Gemfile depends on jekyll ~> 4.3.3,
  version solving has failed.

The source contains the following gems matching 'sass-embedded (~> 1.54)':
  * sass-embedded-1.71.1-x86_64-linux-android

Additional information

Ubuntu 23.10 gem v 3.3.15 ruby 3.1.2p20

davidskeck commented 5 months ago

This was solved by running gem install sass-embedded -v 1.54.0, though I'm not sure this is the correct solution.

davidskeck commented 5 months ago

meant to open this in jekyll. oops.