Current ExecJS runtime does't support ES6

  • A+

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.

Any suggestions will be appreciated.


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


:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: