我正在通过“Getting started with Rails。”
创建博客后,当我运行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
我在我的Gemfile中添加了'execjs'gem,但仍然遇到了同样的错误。我重新安装了RVM,然后重新安装了gem,以及我想要解决问题的所有内容。