Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kulong0105 opened this issue Mar 6, 2017 · 1 comment
Open

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

kulong0105 opened this issue Mar 6, 2017 · 1 comment

Comments

@kulong0105
Copy link

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 jekyll/jekyll#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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants