need help setting up ruby on rails javascript runtime environment

流过昼夜 提交于 2019-12-03 12:17:05

Your Gemfile should contain BOTH of the following lines:

gem 'execjs'
gem 'therubyracer'

Then run bundle install and try again.

If you will add therubyracer gem , may be your problem woould be solved

Code

gem 'therubyracer'
gem 'execjs'

then just do a bundle install

elecay

Try this:

$ sudo apt-get install nodejs

I think you need a runtime like rubyracer. Try

sudo gem install therubyracer

If you're using Pacman packet manager you should use:

# pacman -S nodejs 

or

$ sudo pacman -S nodejs

I'd installed Node.js before Rails. Now its using Node.js as the javascript runtime by itself.

JavaScript Runtime  Node.js (V8)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!