Simpleyyt / jekyll-jacman

A fresh looking and responsive theme for Jekyll
92 stars 92 forks source link

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

Open kulong0105 opened 7 years ago

kulong0105 commented 7 years ago

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'
gsantner commented 7 years ago

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