jekyll-jacman
jekyll-jacman copied to clipboard
jekyll 3.3.1 | Error: Could not find a JavaScript runtime.
phenomenon:
[renyl@localhost kulong0105.github.io]$ bundle exec jekyll s
Configuration file: /home/renyl/Downloads/blog/kulong0105.github.io/_config.yml
Configuration file: /home/renyl/Downloads/blog/kulong0105.github.io/_config.yml
jekyll 3.3.1 | Error: Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes.
[renyl@localhost kulong0105.github.io]$
add two dep pkgs to fix the error info: ( refer to https://github.com/jekyll/jekyll/issues/2327)
diff --git a/Gemfile b/Gemfile
index 782f366..669bedc 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,3 +1,5 @@
source 'https://rubygems.org'
gem 'github-pages', group: :jekyll_plugins
gem 'redcarpet', "3.3.3"
+gem 'execjs'
+gem 'therubyracer'
I used and developed on the theme today, but couldn't find this issue. Updating to the latest gems (bundle install
) and bundle exec jekyll serve
should resolve your problem