首页 文章

Jekyll未满足的依赖关系

提问于
浏览
2

我有一个Jekyll网站几天后运行完美 . 今天当我跑 jekyll serve 时,它开始抛出错误 .

Dependency Error: Yikes! It looks like you don't have jekyll-sitemap or one of its dependencies installed.

我安装了jekyll-sitemap

gem query | grep jekyll-sitemap
jekyll-sitemap (0.10.0)

如果我从 _config.yml 删除jekyll-sitemap并运行 jekyll serve 然后它会抛出错误 kramdown 未安装,也已安装 .

在网上搜索的解决方案就像安装了多个版本的 kramdownjekyll 但我没有任何此类问题 .

这是我的 _config.yml

# Site settings
title: Malabya Tewari
header-img: img/home-bg.jpg
email: imalabya@gmail.com
copyright_name: Malabya Tewari
description: "Drupal developer, Open source enthusiast, trainer, blogger from Bangalore."
keywords: "Malabya Tewari, malavya, Drupal, Drupal Developer"
baseurl: ""
url: "http://imalabya.github.io"
twitter_username: malabya88
drupal_username:  malavya
facebook_username:  malabya88
linkedin_username:  https://www.linkedin.com/in/malabyatewari

# Build settings
markdown: kramdown
highlighter: rouge
permalink: pretty
paginate: 10
exclude: ["less","node_modules","Gruntfile.js","package.json","README.md"]

gems: [jekyll-paginate, jekyll-feed, jekyll-sitemap]

任何帮助将不胜感激,因为我是新的或Jekyll或红宝石 .

1 回答

  • 2

    我把你的代码放在https://github.com/imalabya/imalabya.github.io

    编辑Gemfile:

    source 'https://rubygems.org'
    gem "jekyll"
    gem "jekyll-sitemap"
    gem "jekyll-paginate"
    gem "jekyll-feed"
    

    跑一个 bundle update ,然后一个 bundle exec jekyll serve .

    一切都好 .

相关问题