当你启动Rails3项目如果报以下错误:
Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)解决方法:
编辑Gemfile,加入以下两行,执行bundle install 即可。
gem 'execjs'
gem 'therubyracer'
当你启动Rails3项目如果报以下错误:
Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)解决方法:
编辑Gemfile,加入以下两行,执行bundle install 即可。
gem 'execjs'
gem 'therubyracer'
转载于:https://my.oschina.net/hmmabc/blog/32504