hanyi

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Problem encountered

description:

.../.rvm/gems/ruby-1.9.2-p290/gems/execjs-1.2.13/lib/execjs/runtimes.rb:47:in `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)

Solution:

add the following code in the Gemfile

gem 'execjs'
gem
'therubyracer'

and then run `bundle install` in shell, this problem will solved

 

more about this problem see the links: http://stackoverflow.com/questions/6282307/rails-3-1-execjs-and-could-not-find-a-javascript-runtime

posted on 2011-12-30 10:09  hanyi  阅读(505)  评论(0编辑  收藏  举报