Tuesday, 26 November 2013

Rails Server does not start - "Could not find a JavaScript runtime."

I faced a weird issue while setting up a ROR application as mentioned below
{{{
/home/kannan/.rvm/gems/ruby-1.9.2-p318/gems/execjs-2.0.2/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)
}}}

Even though i had proper gems i was not able to start the rails server. Later I realized the problem is due to the absence of java runtime environment.
I faced this issue in UBUNTU 12.04.

SOLUTION:
sudo apt-get install nodejs

No comments:

Post a Comment