From 99f99169a47e3ec74d8425e62debc9354547ccac Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Fri, 1 Aug 2014 14:20:29 -0400 Subject: [PATCH] Add quick troubleshooting docs for 'Could not find a JavaScript runtime.' Fixes #2327. --- site/_docs/troubleshooting.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/site/_docs/troubleshooting.md b/site/_docs/troubleshooting.md index c0cc9fef..14023094 100644 --- a/site/_docs/troubleshooting.md +++ b/site/_docs/troubleshooting.md @@ -60,6 +60,13 @@ sudo emerge -av dev-ruby/rubygems On Windows, you may need to install [RubyInstaller DevKit](https://wiki.github.com/oneclick/rubyinstaller/development-kit). +### Could not find a JavaScript runtime. (ExecJS::RuntimeUnavailable) + +This error can occur during the installation of `jekyll-coffeescript` when +you don't have a proper JavaScript runtime. To solve this, either install +`execjs` and `therubyracer` gems, or install `nodejs`. Check out +[issue #2327](https://github.com/jekyll/jekyll/issues/2327) for more info. + ## Problems running Jekyll On Debian or Ubuntu, you may need to add `/var/lib/gems/1.8/bin/` to your path