-
-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Could not find a JavaScript runtime. (ExecJS::RuntimeUnavailable) #2327
Comments
Installing system packages isn't something jekyll should be doing. I'm more On 7 May 2014 21:56, Yi Zeng notifications@github.com wrote:
|
The CoffeeScript gem depends on execjs which itself requires a JavaScript runtime. Node.js does fulfill this requirement, but you also could have bundled a gem called |
`jekyll-coffeescript` requires a valid JavaScript runtime due to its dependency on ExecJS, but this is undocumented. jekyll/jekyll#2327 makes me think that it probably should be!
Maybe we should make jekyll-coffeescript optional? |
Maybe? I personally don't care about using CoffeeScript, but I guess I also don't care too much about the added dependency. I'm indifferent, though others in my shoes may prefer it to be an optional plugin. Although, that big 2.0.0 blog post did have a pretty big "Native Sass & CoffeeScript support" bullet point... 😉 |
I'm not using CoffeeScript either, but I host a Jekyll-generated blog on my VPS. I want to keep the machine as clean as possible and refuse therefore to install Node globally as long as I don't need it. A Ruby-based blogging engine happening to have a transitive dependency on a JS runtime does not count as "needing" for me :) I would propose to either remove dependencies on non-Ruby things altogether or to include workarounds (such as Thank you very much for your effort by the way <3 |
Agreed, and there's been conversation elsewhere in the issue queue about On 9 May 2014 07:57, Nikolaus Piccolotto notifications@github.com wrote:
|
I'd really hate to add yet-another-config-option, especially when intent can be discerned very easily from filenames. Perhaps we could lazy-load coffeescript and sass if the generator discovers a |
What config option would we have to add? The proposed solution (#2362) simply loads the gems if they're there, and ignores them if not. |
You'd have to add it to the Gemfile though, right? The above error looks like it occurs when required, not when bundled, right? |
It's an error on require, yes. On 10 May 2014 00:36, Ben Balter notifications@github.com wrote:
|
It's required all the time. 😦 My solution illustrates this in the red. :) |
Confirming bug after a fresh install of Jekyll 2.0.3 on a clean Ubuntu 14.04 system with Ruby 1.9.3.4. |
Shouldn't this - even if not permanent - be mentioned in the installation docs? Currently the requirements list is incomplete, since an external package is required for either |
Same issue here in the same environment as @mchelen.
|
Did you install NodeJS or |
@parkr I am installing therubyracer just now:
|
@parkr Same error after installing |
I had the same issue as above. Installing |
I confirm. |
Weird, I assume |
@mchelen I removed Therubytracer after I installed Nodejs. |
I solve this problem by |
Documented. |
@parkr Can you please link to where this was documented? It would be helpful to those Googling this problem in the future and stumble across this issue. |
Same problem on a debian, trying a "jekyll new"... NodeJS was just installed times ago, I had to install therubyracer for get it work. |
After installing execjs and therubyracer it still showed this error. After installing nodejs it worked. |
We've specified NodeJS on our "Installation" doc page: http://jekyllrb.com/docs/installation/ |
NodeJS is a heavy and unexpected dependency for Jekyll, I think. I just ran into this and was pretty surprised. We're not using CoffeeScript, and I'm sure many, many users of Jekyll are not. |
I agree, @konklone. |
Gotcha - it's a shame #2335 started out so hotheadedly, but I'm glad it got to a good end result. If there's a good stable commit or tag to tie my Jekyll version to in the meantime, while the final 3.0 release gets worked out (which I'm sure will be some time), I'd use it. |
|
|
Add therubyracer to Gemfile works for me... |
Incredibly irritating dependency. Building therubyracer and libv8 takes forever, but better than swamping my cell phone 'net access with node.js downloading at the moment. I don't even use sass or scss. Looking forward to 3. =p |
jekyll core had CoffeeScript added as a requirement. See jekyll/jekyll#2327
Lovely thread. Very helpful too. |
Install node.js work for me... |
sudo apt-get install nodejs. This is useful for me |
Installed
|
Please ask your questions about non-direct problems on https://talk.jekyllrb.com, thanks! |
After upgrading to Jekyll 2.0.2 from 1.5.1, I met this issue while building my repository using
jekyll serve --trace
.Environment:
Stacktrace:
A little bit Googling told me it had something to do with Node.js.
sudo apt-get install nodejs
fixes it. I'm wondering if this is something should be handled by Jekyll installation or not (at least we might want to document it somewhere maybe?)The text was updated successfully, but these errors were encountered: