Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2008/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Windows 10上本地运行Jekyll时出错_Jekyll_Github Pages - Fatal编程技术网

在Windows 10上本地运行Jekyll时出错

在Windows 10上本地运行Jekyll时出错,jekyll,github-pages,Jekyll,Github Pages,我在Windows10上创建了Jekyll博客。当我尝试使用jekyll-serve在本地运行它时,出现以下错误: 读取文件C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/minima-1.0.1//u layouts/default.html时出错:没有这样的文件或目录@rb\u sysopen-/tools/ruby23/lib/ruby/gems/2.3.0/gems/minima-1.0.1//u layouts/default.html 读取文件C:/

我在Windows10上创建了Jekyll博客。当我尝试使用
jekyll-serve
在本地运行它时,出现以下错误:

读取文件C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/minima-1.0.1//u layouts/default.html时出错:没有这样的文件或目录@rb\u sysopen-/tools/ruby23/lib/ruby/gems/2.3.0/gems/minima-1.0.1//u layouts/default.html

读取文件C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/minima-1.0.1//\u layouts/page.html时出错:没有这样的文件或目录@rb\u sysopen-/tools/ruby23/lib/ruby/gems/2.3.0/gems/minima-1.0.1//\u layouts/page.html

读取文件C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/minima-1.0.1//u layouts/post.html时出错:没有这样的文件或目录@rb\u sysopen-/tools/ruby23/lib/ruby/gems/2.3.0/gems/minima-1.0.1//u layouts/post.html

我在stackoverflow和其他一些网站(例如)上搜索过这个问题,发现它适用于Jekyll版本
3.2.1
。我也安装了这个版本并试用过,但仍然无法在本地运行

我已经安装了所有需要的东西,比如ruby、rubydevkit、python和Jekyll。但唯一的问题是,在发布到GitHub页面之前,我无法在本地运行它来测试它。我只成功地将它发布到GitHub页面,没有错误,但没有在本地运行。我遵循了这里的教程:


如何在本地运行它?它是否不适用于windows?。谢谢。

我错过了一些设置,应该使用
bundle exec-jekyll-serve运行
bundle-install
然后
bundle-exec-jekyll-serve
不工作,仍然收到相同的错误@DavidJacquelIf如果它不起作用:您可以在CloudCannon中运行Jekyll并在浏览器中进行编辑。可在所有平台上工作。