ExecJS并找不到JavaScript运行时 [英] ExecJS and could not find a JavaScript runtime

查看:187
本文介绍了ExecJS并找不到JavaScript运行时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 Mongoid / Devise Rails 3.1模板 Mongoid 设计 ),我一直收到错误,指出 ExecJS 无法找到JavaScript运行时。当我没有安装任何内容时足够公平,但我已经尝试安装 Node.js Mustang Ruby Racer ,但没有任何效果。

I'm trying to use the Mongoid / Devise Rails 3.1 template (Mongoid and Devise), and I keep getting an error stating ExecJS cannot find a JavaScript runtime. Fair enough when I didn't have any installed, but I've tried installing Node.js, Mustang and the Ruby Racer, but nothing is working.

我找不到JavaScript运行时。请参阅 sstephenson / ExecJS (GitHub的)可用运行时间的列表( ExecJS :: RuntimeUnavailable )。

I could not find a JavaScript runtime. See sstephenson/ExecJS (GitHub) for a list of available runtimes (ExecJS::RuntimeUnavailable).

我需要做些什么来实现这个目的?

What do I need to do to get this working?

推荐答案

Ubuntu用户



我在Ubuntu 11.04上有类似的问题。 安装Node.js 修复了它。

从Ubuntu 13.04 x64起,你只需要运行:

As of Ubuntu 13.04 x64 you only need to run:

sudo apt-get install nodejs

这将解决问题。

sudo yum install nodejs

这篇关于ExecJS并找不到JavaScript运行时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆