title: rake db:create - Could not find a JavaScript runtime
body: <p>Here is the error I get:</p>
  
  <pre><code>sergio@sergio-VirtualBox:~/blog$ rake db:create
  rake aborted!
  Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes.
  
  (See full trace by running task with --trace)
  
  sergio@sergio-VirtualBox:~/blog$ 
  </code></pre>
  
  <p>So after some searching it seems I need to install a Javascript runtime for Ruby. </p>
  
  <p>Is there a difference between the many different options? It seems Node.js is the easiest to install, will this come back to bite me or is this choice OK?</p>
  
  <p>This <a href="https://stackoverflow.com/questions/7376021/rails-rake-does-not-work">answer</a>, seems to be what I'm looking for but I don't know how to make use of it. Where do I find this "gemfile" and is it a per rails project file or a global ruby file? I'm very confused and can't seem to get my bearings and multiple answers contradict each other and don't solve the issue.</p>
  
  <blockquote>
    <p>Add this to your Gemfile</p>
    
    <p>gem 'therubyracer', require: "v8"</p>
    
    <p>and run</p>
    
    <p>bundle install</p>
  </blockquote>