windows-8 - Jekyll Serve 不工作。未初始化的常量。 window 8

标签 windows-8 cmd jekyll

我已在 Windows 8 上安装了 Jekyll 并创建了一个新应用程序。我在目录内,当我运行 jekyll serve 时,它给了我这个错误

C:/Blog/> jekyll serve
C:/Ruby200/lib/ruby/gems/2.0.0/gems/safe_yaml-1.0.4/lib/safe_yaml/psych_resolver
.rb:4:in `<class:PsychResolver>': uninitialized constant Psych::Nodes (NameError
)
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/safe_yaml-1.0.4/lib/safe_yaml/p
sych_resolver.rb:2:in `<module:SafeYAML>'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/safe_yaml-1.0.4/lib/safe_yaml/p
sych_resolver.rb:1:in `<top (required)>'
        from C:/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_requir
e.rb:69:in `require'
        from C:/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_requir
e.rb:69:in `require'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/safe_yaml-1.0.4/lib/safe_yaml/l
oad.rb:131:in `<module:SafeYAML>'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/safe_yaml-1.0.4/lib/safe_yaml/l
oad.rb:26:in `<top (required)>'
        from C:/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_requir
e.rb:69:in `require'
        from C:/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_requir
e.rb:69:in `require'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/jekyll-2.5.3/lib/jekyll.rb:26:i
n `<top (required)>'
        from C:/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_requir
e.rb:69:in `require'
        from C:/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_requir
e.rb:69:in `require'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/jekyll-2.5.3/bin/jekyll:6:in `<
top (required)>'
        from C:/Ruby200/bin/jekyll:23:in `load'
        from C:/Ruby200/bin/jekyll:23:in `<main>'

这是我的_config.yml文件

# Site settings
title: Your awesome title
email: your-email@domain.com
description: > # this means to ignore newlines until "baseurl:"
  Write an awesome description for your new site here. You can edit this
  line in _config.yml. It will appear in your document head meta (for
  Google search results) and in your feed.xml site description.
baseurl: "" # the subpath of your site, e.g. /blog/
url: "http://yourdomain.com" # the base hostname & protocol for your site
twitter_username: jekyllrb
github_username:  jekyll

# Build settings
markdown: kramdown

如果有人能提供帮助,谢谢!

最佳答案

运行gem cleanup应该可以解决问题

关于windows-8 - Jekyll Serve 不工作。未初始化的常量。 window 8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28530053/

相关文章:

javascript - 将数组保存到漫游设置

c++ - C++ Metro 风格应用程序中的资源

windows - 从文本文件中读取变量

jekyll - 在 Jekyll 页面中使用 Liquid 标签,而不是布局

plugins - 如何在 Jekyll 中从 Liquid block 生成文件?

windows-8 - 我可以在不使用应用商店的情况下分发 Windows 8 Modern UI 应用程序吗?

c# - 使用 C# (Windows-Store App) 获取文件列表。函数有问题

cmd - bat 文件和标签

windows - 使用 `^` 转义 Windows 批处理文件中的行尾字符在某些行上不起作用?

Jekyll 发布没有日期的文件名