See https://github.com/rails/execjs for a list of available runtimes."如前所述,我已经安装了nodejs,如果我尝试通过ruby控制台(irb)运行第一个ExecJS示例,它会正常工作:require "execjs" ExecJS.eval "'red yellow blue知道为什么ExecJS自动检测缺少NodeJS吗?
提前谢谢。
我还安装了execjs、therubyracer和node.js。每次我想创建一个新的控制器时,它都会说:
/usr/local/lib/ruby/gems/2.0.0/gems/execjs-2.0.2/lib/execjs/runtimes.rb:51:in `autodetectSee https://github.com/sstephenson/execjs for