ITeye博客

my rails wiki

wadefall · 2012-04-12 20:57 · Ruby · 编程语言 · Markdown

rails server

出现下面的错误 Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)

解决方法:在系统里面安装一个js的运行环境。注意有的源是不行的(sigh!)。 下面是经我测试可以的办法:

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs

参考资料:https://github.com/sstephenson/execjs

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。