[Java] [Rails] What to do if you get an error Could not find a JavaScript runtime. when executing rails s command in Catalina

less than 1 minute read

error contents

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

approach

gem’therubyracer’ is addictive so you should stop it. Install Node.js https://nodejs.org/en/