Current ExecJS runtime does't support ES6

jscript runtime does’t support es6
execjs::runtimeunavailable could not find a javascript runtime
execjs call
alpine execjs
therubyracer
rails javascript runtime
node js runtime environment
rails node js v8 runtime is not available on this system execjs::runtimeunavailable

rake assets:precompile for my rails project throws below error:

rake aborted! Current ExecJS runtime does't support ES6. Please install latest Node.js.

Below is the environment information:

rails -v
Rails 5.0.7

ruby -v
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]

node -v
v6.11.1

I tried reinstalling all my gems. But still, the error comes. OS is RHEL.


i had the same problem after upgrading autoprefixer-rails to Version 9.0.0. i fixed it by setting autoprefixer-rails to a pre 9 version:

gem 'autoprefixer-rails', '8.6.5'

in my Gemfile

Current ExecJS runtime does't support ES6. Please install latest , Hi There, Yesterday i opened a issue with the sprocket 4, that issue is solve. Now i get another error: Current ExecJS runtime does't support  after nodejs installation, uninstall the gems and reinstall it again. mainly rubyracer or execjs. – Bijendra Jul 19 '18 at 9:10


I had a similar problem after upgrading to Rails 5.2

The solution for me was to add this line

 # make the ExecJs use NodeJs
 ENV['EXECJS_RUNTIME'] = 'Node'

In this file

config/boot.rb

Then restart the rails server

9.0 Triggering ActionView::Template Error · Issue #137 · ai , therubyracer (V8) runtime does't support ES6. Please update or replace your current ExecJS runtime. I can't use mini_racer. Can you help me  ExecJS provides a lowest common denominator interface to any JavaScript runtime. Use ExecJS when it doesn't matter which JavaScript interpreter your code runs in. If you want to access the Node API, you should check another library like commonjs.rb designed to provide a consistent interface.


Replace therubyracer by mini_racer in Gemfile:

# gem 'therubyracer', platforms: :ruby
gem 'mini_racer', platforms: :ruby

And then:

$ bundle install

You may need to add a javascript runtime to your Gemfile in order , ExecJS supports these runtimes: therubyracer - Google V8 embedded within Ruby. therubyrhino - Mozilla Rhino embedded within JRuby. Yesterday i opened a issue with the sprocket 4, that issue is solve. Now i get another error: Current ExecJS runtime does't support ES6.


There's been a similar issue opened in the Autoprefixer-rails gem regarding this error, but it was thrown from an ActionView Template. keep an eye out for a response from the contributor:

https://github.com/ai/autoprefixer-rails/issues/137

ExecJS::RuntimeError, About: ExecJS lets you run JavaScript code from Ruby. It automatically picks the best runtime Duration: 7:05 Posted: Apr 3, 2014 The pros of PyExecJS is that you do not need take care of JavaScript environment. Especially, it works in Windows environment without installing extra libraries. One of cons of PyExecJS is performance. PyExecJS communicate JavaScript runtime by text and it is slow. The other cons is that it does not fully support runtime specific features.


commit rubygem-autoprefixer-rails for openSUSE:Factory, Package is "rubygem-autoprefixer-rails" Mon Aug 20 16:21:55 2018 rev:21 + "​Please update or replace your current ExecJS runtime. Consider using 127.0 .0.1 (--binding option) => Ctrl-C to shutdown server [2015-01-24 14:32:37] INFO WEBrick 1.3.1 [2015-01-24 14:32:37] INFO ruby 2.1.5 (2014-11-13) [i386-mingw32] [2015-01-24 14:32:37] INFO WEBrick::HTTPServer#start: pid=4284 port=3000 Started GET "/" for 127.0.0.1 at 2015-01-24 14:37:02 -0500 Processing by Rails


Questions for tag execjs, uninitialized constant ExecJS::Runtimes::RubyRacerRuntime · Current ExecJS runtime does't support ES6 · execjs._exceptions.ProgramError: ReferenceError:  Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.


Execjs Fastnode, Currently minimal effort is made to handle catastrophic errors: Node.js crashing, The goal of this endeavour is to give users a fast ExecJS runtime without  after all steps I get this error Current ExecJS runtime does't support ES5. Please install node.js. (in C:/Sites/socify/app/assets/stylesheets/application.css.scss)