Reputation: 349
I'm working through "Getting started with Rails."
After creating the blog I got this error when I run rails server
:
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/execjs-2.0.1/lib/execjs/runtimes.rb:51:in "autodetect":
Could not find a JavaScript runtime.
See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable
I added the 'execjs' gem to my Gemfile, but still got the same error. I reinstalled RVM, then reinstalled the gem, and all that I thought to solve the problem.
Upvotes: 1
Views: 801
Reputation: 331
You need to install node.js.
Check "Why does rails require JavaScript Runtime?."
Upvotes: 2