harmony icon indicating copy to clipboard operation
harmony copied to clipboard

Problem in running jekyll serve

Open mandliya opened this issue 9 years ago • 9 comments

Once I have cloned the theme I run "bundle install". It seems to be working successfully, I get this in the end:

Bundle complete! 3 Gemfile dependencies, 56 gems now installed. Use bundle show [gemname] to see where a bundled gem is installed.

Then I run "jekyll serve", I get the below error:

Conversion error: Jekyll::Converters::Markdown encountered an error while converting '_posts/2014-07-28-welcome-to-jekyll.markdown/#excerpt': Missing dependency: kramdown ERROR: YOUR SITE COULD NOT BE BUILT: ------------------------------------ Missing dependency: kramdown

I install the gem using : sudo gem install kramdown it install successfully. However, "jekyll serve" still fails.

Following stack overflow suggestion (http://stackoverflow.com/questions/28574314/missing-gem-dependencies) to add gem 'kramdown' in Gemfile and then running bundle install did not help too..

I know kramdown is installed, I am not sure how to move ahead, any help would be great.

Thanks

mandliya avatar Jun 23 '15 23:06 mandliya

Hi Ravi,

Are you using a Ruby version manager?

gayanvirajith avatar Jun 24 '15 17:06 gayanvirajith

I'm having this same issue. I'm using rbenv as a ruby version manager. Installed ruby version is 2.1.4.

Ryan-McBride avatar Jul 04 '15 23:07 Ryan-McBride

Hi,

Could you please try by modifying Gemfile as follows and check weather it solve the issue:

source 'https://rubygems.org'

require 'json'
require 'open-uri'
versions = JSON.parse(open('https://pages.github.com/versions.json').read)

gem 'github-pages', versions['github-pages']
gem 'kramdown', versions['kramdown']
gem 'rake'

gayanvirajith avatar Jul 05 '15 03:07 gayanvirajith

I tried modifying the Gemfile and still have the same issue as others are having.

jfarbowitz avatar Jan 19 '16 06:01 jfarbowitz

I modified the Gemfile but still get this error:

WARN: Unresolved specs during Gem::Specification.reset: listen (~> 3.0) WARN: Clearing out unresolved specs. Please report a bug if this causes problems. Configuration file: .../harmony/_config.yml Dependency Error: Yikes! It looks like you don't have kramdown or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- kramdown' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/! jekyll 3.1.2 | Error: kramdown

rudiruhl avatar Feb 20 '16 13:02 rudiruhl

Hi,

Run :

[sudo] bundle clean --force

:smile: this work's for me...

shinigamicorei7 avatar Feb 24 '16 00:02 shinigamicorei7

Thanks bundle clean --force worked for me

dburriss avatar Mar 16 '16 20:03 dburriss

Hi,

Run :

[sudo] bundle clean --force

😄 this work's for me...

which directory did you run this command?

kaizer1v avatar May 07 '19 12:05 kaizer1v

Somehow, the suggested command bundle clean --force simply removed all my gems, including Jekyll and its dependencies 😕. Use with care.

Racso avatar Jan 01 '20 01:01 Racso