Friday, November 29, 2013

ruby-1.9.3-p484@pro1/gems/execjs-2.0.2/lib/execjs/runtimes.rb:51:in `autodetect': Could not find a JavaScript runtime

 /home/sachin/.rvm/gems/ruby-1.9.3-p484@pro1/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)

Solution:

You can use this for install nodejs package and it will remove this error.

sudo apt-get install nodejs

OR

Inside Gemfile uncomment this or if you have no this then add this gem:

gem 'therubyracer', :platforms => :ruby

0 comments:

Post a Comment