问题描述
我最近决定从Jekyll开始我的网站。 事情似乎直截了当,但是我自己我对宝石不怎么了解;)
为方便起见,我使用的是Jekyll GitHub动作(官方以及我在Git上发现的其他几个动作)。
我一直遇到同样的问题。
我已经附加了我的Gemfile和错误
我为此的git仓库是https://github.com/stiliajohny/stiliajohny.github.io
Github操作在ubuntu-latest上运行(我尝试过的大多数操作都在ubuntu上运行)
**编辑:**在我的本地作品上进行构建
source "https://rubygems.org"
gem "jekyll","3.8.7"
gem "bundler"
gem "dev-portfolio-blog"
gem "html-proofer"
gem "execjs"
?️ Building website...
Configuration file: /github/workspace/repo/_config.yml
/usr/local/bundle/gems/execjs-2.7.0/lib/execjs/runtimes.rb:58:in `autodetect': Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
jekyll 3.8.7 | Error: Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes.
from /usr/local/bundle/gems/execjs-2.7.0/lib/execjs.rb:5:in `<module:ExecJS>'
解决方法
尝试将param(
[Parameter(Mandatory=$true,ValueFromRemainingArguments=$true)][string]$param1
)
添加到Gemfile中。 This将V8 JavaScript解释器嵌入到Ruby中。