[Java] Error handling method of Could not find a JavaScript runtime. when running rails s

less than 1 minute read

Since I raised the version of macOS, the local server could not be started in the local environment of the Rails application under development, and the following error occurred, so I will post it as a memo.

macOS Catalina version 10.15.5 Environment: Ruby, Ruby on Rails, JavaScript

error contents

Could not find a JavaScript runtime.See https://github.com/rails/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)

Solution

Install the latest version of Node.js. that’s all. That was all. ![Screenshot 2020-06-22 3.55.41.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/648523/c7c5f0a9-2926-a87c-fdde-(eb4c851bb2bc.png)