ExecJS::RuntimeUnavailable: Could not find a JavaS

ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime. Seefor a list of available runtimes.

解决办法: 1、ubuntu

sudo apt-get install nodejs

centos/redhat

sudo yum install nodejs

方法2、vim Gemfile
添加:

gem 'execjs'
gem 'therubyracer'
然后: bundle install

你可能感兴趣的:(ExecJS::RuntimeUnavailable: Could not find a JavaS)