[rails4] rake assets:precompileしようとしたらCurrent ExecJS runtime does’t support ES6. Please install latest Node.jsと怒られる問題の解決法
自分のrailsアプリをherokuにpushしようとrake assets:precompileをしたら
| 1 | Current ExecJS runtime does't support ES6. Please install latest Node.js | 
と怒れら、ニッチもサッチもいかない状態に。
いろいろ試行錯誤した結果以下の通りで解決しました。
自分は
| 1 | gem 'autoprefixer-rails', | 
と最新バージョンで使用していたのですが、これをバージョンダウンして
| 1 | gem 'autoprefixer-rails', '8.6.5' | 
とし
| 1 | bundle update | 
したら解決しました。
その後コミットすることをお忘れなく。


