Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)

后端 未结 9 1408
甜味超标
甜味超标 2021-01-30 03:58

My website has been broken since Dreamhost upgraded their servers a couple of weeks ago. I have been tearing my hair out trying to get it fixed and made some progress but am stu

9条回答
  •  梦毁少年i
    2021-01-30 04:24

    I just a saw a presentation on this.

    I've used rubytheracer up till now. Apparently it ain't so great. And it's huge.

    But you can use any javascript runtime.

    The other two recommended are execjs and node.js (which is very hot right now).

    Make sure to gem install the selected gem and then bundle install or bundle update for your app.

    One other note is that you should switch to 1.9.2 also.
    Install RVM (bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)) and you can have both 1.8.7 and 1.9.2 side-by-side.

提交回复
热议问题