在此doc
http://jekyllrb.com/docs/windows/#installation之后,我在非主分支上设置GEM时
并在该分支上运行此命令jekyll s
,它抛出了这个WARN
WARN: Unresolved specs during Gem::Specification.reset:
listen (< 3.1, ~> 3.0)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/bundler-1.13.5/lib/bundler/runtime.rb:40:in `block in setup': You have already activated jekyll-sass-converter 1.4.0, but your Gemfile requires jekyll-sass-converter 1.3.0. Prepending `bundle exec` to your command may solve this. (Gem::LoadError)
from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/bundler-1.13.5/lib/bundler/runtime.rb:25:in `map'
from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/bundler-1.13.5/lib/bundler/runtime.rb:25:in `setup'
from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/bundler-1.13.5/lib/bundler.rb:99:in `setup'
from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/jekyll-3.3.0/lib/jekyll/plugin_manager.rb:36:in `require_from_bundler'
from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/jekyll-3.3.0/exe/jekyll:9:in `<top (required)>'
from C:/tools/ruby23/bin/jekyll:22:in `load'
from C:/tools/ruby23/bin/jekyll:22:in `<main>'
我使用gem cleanup listen
清除它与jekyll s
不兼容,但它与bundle exec jekyll s
一起运行
我甚至运行bundle exec jekyll serve --force_polling
和bundle exec jekyll serve --watch
它返回Configuration file: none
所以手表发生了吗?我可以只使用jekyll s
吗?
我可以使用jekyll tempates吗?
我将Ruby降级到2.2并重新安装捆绑包,服务器现在正在运行,但仍然没有配置文件Configuration file: none
我要手动创建一个吗? touch
答案 0 :(得分:0)
所以我找到了解决方案,请按照doc
帮助我为网站创建一个jekyll模板。我可以通过jekyll new
../ ..手动完成一个新的目录,并将我想要的那些文件复制到我想要的repo并提交它。对我来说一切都很好。
谢谢 mudasobwa 。我只是尝试用jekyll和git玩一个星期。我的坏:(