Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem in running jekyll serve #8

Open
mandliya opened this issue Jun 23, 2015 · 9 comments
Open

Problem in running jekyll serve #8

mandliya opened this issue Jun 23, 2015 · 9 comments

Comments

@mandliya
Copy link

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

@gayanvirajith
Copy link
Owner

Hi Ravi,

Are you using a Ruby version manager?

@Ryan-McBride
Copy link
Contributor

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

@gayanvirajith
Copy link
Owner

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'

@jfarbowitz
Copy link

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

@rudiruhl
Copy link

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

@shinigamicorei7
Copy link

Hi,

Run :

[sudo] bundle clean --force

😄 this work's for me...

@dburriss
Copy link

Thanks bundle clean --force worked for me

@kaizer1v
Copy link

kaizer1v commented May 7, 2019

Hi,

Run :

[sudo] bundle clean --force

😄 this work's for me...

which directory did you run this command?

@Racso
Copy link

Racso commented Jan 1, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants