首页 > HTML5/CSS3/Javascript/前端技术 > ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime

ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime

2015年11月10日

ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime

http://blog.sina.com.cn/s/blog_600e56a60102v1h0.html

ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes.
 
解决办法:
1、ubuntu

sudo apt-get install nodejscentos/redhat

sudo yum install nodejs

2、vim Gemfile
添加:

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

本文的评论功能被关闭了.