ExecJS::RuntimeUnavailable 在 Rails
ExecJS::RuntimeUnavailable in Rails
我在尝试 运行 rails 应用程序时遇到此错误。
ExecJS::RuntimeUnavailable in Pages#home
我安装了 rubyracer
但没有帮助我。
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes.
尝试安装 Node.js
:
brew install node # For Mac OSX
sudo apt-get install nodejs # For Ubuntu
在您的系统中查看 other ways of installing Node.js。
然后,重新启动您的服务器。这应该可以解决您的问题。
我在尝试 运行 rails 应用程序时遇到此错误。
ExecJS::RuntimeUnavailable in Pages#home
我安装了 rubyracer
但没有帮助我。
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes.
尝试安装 Node.js
:
brew install node # For Mac OSX
sudo apt-get install nodejs # For Ubuntu
在您的系统中查看 other ways of installing Node.js。
然后,重新启动您的服务器。这应该可以解决您的问题。