18
votes

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
2
I haven't used Jekyll on my machine in a while, and I also have this issue on 10.15.6; reinstalling Jekyll and uninstalling and reinstalling all gems didn't help.cdf1982
@cdf1982 Yeah It didn't work for me eitheryoon
I believe this may be due to the Github-suggested security fix for the flagged vulnerability in Kramdown, Bump kramdown from 1.17.0 to 2.3.0. It was after I applied this that this error popped up. The solution below fixed it.Andy

2 Answers

31
votes

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

Now the serve command completes successfully.

3
votes
  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.