[RUBY] [Rails] What to do if you get an error saying "Could not find a JavaScript runtime." When executing the rails s command on Catalina

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 easy to get hooked on, so you should stop it. Install Node.js https://nodejs.org/en/

Recommended Posts

[Rails] What to do if you get an error saying "Could not find a JavaScript runtime." When executing the rails s command on Catalina
What to do if you get an error saying "Could not find a JavaScript runtime." When starting rails server
What to do if you get an "A server is already running." Error when you try to start the rails server
What to do if you get an error saying "Please enter a valid value" when getting with Rails datetime_field
What to do if you get the error Couldn't find Item without an ID
What to do if you get a port error when docker-compose up on Mac
[Error resolution] How to resolve the error "Could not find a JavaScript runtime." After upgrading Catalina!
[Rails] What to do if you can't get an error message with the errors method
What to do if you get an error during rails db: reset
What to do if you get an error when you hit Heroku logs
What to do if you get a "Mysql2 :: Error: Operand should contain 1 column (s)" error in Rails
What to do if you get an error on heroku rake db: migrate
What to do if Operation not permitted is displayed when you execute a command in the terminal
What to do if you get a NoClassDefFoundError when trying to run eclipse on Java9
How to deal with errors in Rails s could not find a JavaScript runtime.
What to do if you can't use the rails command
What to do if you get an error saying Cannot find a valid baseurl for repo when you use yum -y install docker in a udemy course using CentOS7
[Java] What to do if you get an error in Eclipse saying "Not allowed at source level below 1.X"
What to do if you get a "Cannot Pull Container Error" when starting ECS ​​Fargate
What to do if you get a "302" error in your controller unit test code in Rails
What to do if you get an error in Basic authentication during Rails test code
What to do if you get a gcc error in Docker
What to do if you get a DISPLAY error in gym.render ()
Remedy for "A server is already running." Error when running rails s
A server is already running. Check / [WORKDIR] /tmp/pids/server.pid. Solution
When the server does not start with rails s
MySQL is not running stably ... Rails app is not running.
What to do if you get an "A server is already running." Error when you try to start the rails server
What to do about "A server is already running ..." that happened without turning off the rails server in the terminal
Many error lines ... Rails server does not start 2. "Autodetect': Could not find a JavaScript runtime."
<Dot installation> What to do if you cannot proceed due to an error when building a development environment for Rails learning.
[Programming beginner] What to do when rails s becomes an error in the local development environment
What to do if you get a JNI shared library error when trying to build in Eclipse
What to do if you get an uninitialized constant Likes Controller error
What to do if you get a MiniMagick vulnerability alert on GitHub
What to do if you get the error Too long with no output (exceeded 10m0s) on CircleCI
What to do if you get a SQLite3 :: BusyException: database is locked error
What to do if you get Could not locate Gemfile or .bundle / directory
What to do if you get the error message unrecognized selector send to instance "***"
What to do if you get Could not save master table to file after importing a project in Eclipse
What to do if you get a wrong number of arguments error in binding.pry
Many error lines ... Rails server does not start 2. "Autodetect': Could not find a JavaScript runtime."
What to do when ‘Could not find’ in any of the sources appears in the development environment with Docker × Rails × RSpec
What to do if you get a java.io.IOException in GlassFish
What to do when you launch an application with rails
What to do when a could not find driver appears when connecting to a DB in a Docker environment
[Rails Tutorial Chapter 2] What to do when you make a mistake in the column name
What to do if a SAX Parser error occurs when using Liferay 7 / DXP on AWS
What to do when Rails on Docker does not reflect controller changes in the browser
How to make a jar with old Hadoop (hadoop-core-0.20.2-cdh3u6) in Gradle: (What to do if you get Could not expand ZIP ..)
What to do if you select a JRE in Eclipse and get "The selected JRE does not support the current compliance level 11"
[Rails] What to do when rails s does not respond or does not stop
[Rails] What to do if you can't get parameters with form_with
What to do if you go offline due to SSL certificate error when running Jenkins on Mac
What to do if you get an [An HTTP request took too long to complete.] Error in Docker.
What to do if the app is not created with the latest Rails version installed when rails new
What to do if you get "Changes not staged for commit:" when you git status after git add.
What to do if you get `rescue in block in modules_for_hoge': Missing hoge file hoge / hoge_hoge.rb (AbstractController :: Helpers :: MissingHogeError) in rails s even though the file is in the specified error location.
What to do if you get a groovy warning in Thymeleaf Layout
What to do if you get an error with bundle install by entering gem'bcrypt' in your Gemfile
What to do if an error occurs when nokogiri enters when bundle install
What to do if you should have installed Rails but an error occurs with rails -v (for beginners)
What to do if the image posted by refile disappears after setting a 404 error page in Rails
no space left on device What to do if an error occurs
What to do when "call'Hoge.connection' to establish a connection" appears on rails c
Remedy for "A server is already running." Error when running rails s
What to do if you get an "A server is already running." Error when you try to start the rails server
What to do about "A server is already running ..." that happened without turning off the rails server in the terminal
What I did when I was addicted to the error "Could not find XXX in any of the sources" when I added a Gem and built it