我正在尝试使用"Creating a GitHub Pages site with Jekyll“,但是当我运行这些命令中的任何一个时: $ bundle exec jekyll VERSION new .
$ bundle exec jekyll _4.0.0_ new .
$ bundle exec jekyll 4.0.0 new . 我得到了这个错误: "Could not locate Gemfile or .bundle/ directory" 我已经看了几篇与这个错误消息相关的SO帖子,但似乎没有一个能解决我的问题。也许我错过了什么? 一些相关的细节:
我正在做一个Jekyll项目,它构建/服务正常。当我将github-pages添加为gem时,我运行包更新,因为它需要解决依赖关系。这样做之后,我尝试构建和/或服务,它在生成静态站点时返回以下错误:
jekyll 3.6.2 | Error: SyntaxError: Unexpected token: operator (>)
这是我的个人档案:
source "https://rubygems.org"
# Hello! This is where you manage which Jekyll version is used to run.
# When you
我目前正在尝试将Jekyll上传到Gitlab页面,但是,由于某些原因,我在流水线中不断遇到相同的错误消息:
$ bundle exec jekyll build -d public
Configuration file: /builds/mmellows1/mighty/_config.yml
jekyll 3.8.6 | Error: Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes.
ERROR: Job failed
描述
我正在尝试使用GitHub页面来设置我的个人网站,如中描述的那样,使用Jekyll 3.8.5,但是绑定程序有问题。
详细信息
包找不到已安装的Jekyll 3.8.5
$ bundle exec jekyll 3.8.5 new .
fatal: 'jekyll 3.8.5' could not be found. You may need to install the jekyll-3.8.5 gem or a related gem to be able to use this subcommand.`
确认我确实有jekyll-3.8.5
$ bundle inf
我正在根据Jekyll主页上的信息在我的电脑上设置Jekyll。Ruby2.6.3是通过rbenv安装的。
在第一步中,我创建了一个最小的Gemfile,只包含Jekyll
source "https://rubygems.org"
ruby "2.6.3"
group :base do
gem 'jekyll', '4.0.0'
end
我通过bundle install安装了所有的宝石,据我所知,它们已经正确安装了。我是通过
user@host:homepage> bundle info jekyll
*
我和Jekyll一起创建了一个GitHubPage,目前我正在尝试使用一些可用的基本插件。到目前为止,没有什么特别之处,我使用的是白色插件,特别是插件。它在新选项卡中打开链接,默认情况下在Markdown中不支持这些链接。
到目前为止,我已经使用myusername.github.io回购创建了这个站点,将其克隆到本地,并按照jekyll new .的指示创建了一个基本站点。然后,我把所有的更改都推到了GitHub上,一切都很好。
然后,为了安装上面提到的插件,我遵循了帮助部分中提到的步骤,即:
Add the following to your site's Gemfile
ge
我正在尝试更新一个jekyll博客,并想先在浏览器上查看它。我运行了jekyll serve,得到:
rbenv: jekyll: command not found
The `jekyll' command exists in these Ruby versions:
2.1.0
为什么我会有这个错误?我还运行了bundle exec jekyll serve
Could not locate Gemfile or .bundle/ directory
如果有帮助,这是echo $PATH的结果
/Users/BLAH/.rbenv/shims:/Library/Framewor
目标
使用Jekyll启动Github页面。我在跟踪。
问题
在执行时:
bundle exec jekyll 3.8.7 new .
返回以下错误:
fatal: 'jekyll 3.8.7' could not be found. You may need to install the jekyll-3.8.7 gem or a related gem to be able to use this subcommand.。
还请注意(a) Jekyll 3.8.7是,(b)如果我尝试对Jekyll 4.1.0执行此操作,则返回相同的错误。
上下文
我尝试了 -- $ bun
我在运行jekyll来创建GitHub页面时遇到了问题。按照documentation中列出的说明操作之后,在编辑Gemfile并尝试运行bundle update之后,我一直收到错误消息。错误是: Bundler could not find compatible versions for gem "terminal-table":
In snapshot (Gemfile.lock):
terminal-table (>= 2.0.0)
In Gemfile:
github-pages (~> 215) was resolved to