Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6876983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:32:44+00:00 2026-05-27T04:32:44+00:00

In my first rails project (using mysql) I tried to execute the rake db:create

  • 0

In my first rails project (using mysql) I tried to execute the rake db:create command, but it outputted the following error:

Could not find a JavaScript runtime. See
https://github.com/sstephenson/execjs for a list of available
runtimes.

So I included gem 'therubyracer', require: "v8" on my Gemfile and executed a bundle install. The problem is solved, but it left some doubts.

Could somebody give me an explanation about why a javascript runtime is needed for this kind of task? I’m new to Ruby and RoR so this seems quite strange to me, why do RoR use javascript for creating a database?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T04:32:44+00:00Added an answer on May 27, 2026 at 4:32 am

    You need a javascript runtime because now Rails uses an asset pipeline. Rails doesn’t need it to run your migrations but when you run rake db:migrate, the rake task loads your rails application that needs a javascript runtime to start. Practically, there is no relation between the migrations and the javascript runtime but your app won’t load without it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Working on my first Rails project, I used Ryan Bates' Nifty-Generators to create the
I'm making my first Rails project and I'm using the simple_form gem (version 1.0)
I am doing my first project using Ruby on Rails and need to display
I'm using a rails 3.1.3 project which has rake (0.9.2.2). I want to do
I am starting my first ruby on rails project using RSpec and BDD. When
So I just started my first rails project yesterday. I had two many-to-many (has_and_belongs_to_many)
I've been developing my first rails application on my windows computer. But now i
I wanted to create an online shop using rails and the spree gem (http://spreecommerce.com/).
I'm doing my first Ruby on Rails project. I am working on a project
I'm brand new at Ruby. Trying to set up the first application/project using Aptana

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.