jekyll-jacman icon indicating copy to clipboard operation
jekyll-jacman copied to clipboard

jekyll 3.3.1 | Error: Could not find a JavaScript runtime.

Open kulong0105 opened this issue 7 years ago • 1 comments

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'

kulong0105 avatar Mar 06 '17 15:03 kulong0105

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

gsantner avatar Jun 24 '17 22:06 gsantner