Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jekyll error building page related to kramdown parser

Tags:

jekyll

Whenever I run the "bundle exec jekyll serve" it returns the error

Dependency Error: Yikes! It looks like you don't have kramdown-parser-gfm 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-parser-gfm' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/!
Liquid Exception: kramdown-parser-gfm in /_layouts/default.html ERROR: YOUR SITE COULD NOT BE BUILT: ------------------------------------ kramdown-parser-gfm

so, I tried "gem install kramdown-parser-gfm", but it returns the same error after that. I also tried to remove and reinstall the jekyll and bundle, but it also didn't work.

jekyll version 3.9.0 Bundler version 2.1.4
like image 989
yoon Avatar asked Aug 10 '20 07:08

yoon


2 Answers

I added gem "kramdown-parser-gfm" to the Gemfile and then ran bundle install.

Now the serve command completes successfully.

like image 150
aron Avatar answered Nov 01 '22 14:11

aron


  1. delete the Gemfile.lock file
  2. go to gem file add gem "kramdown-parser-gfm"
  3. open terminal and give command bundler
  4. after install all packages, in terminal give command bundle exec jekyll serve I hope application will run properly now.
like image 45
Rubel Hossain Avatar answered Nov 01 '22 16:11

Rubel Hossain