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

Installing node.js fixed this for me

go to https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager

or run the following commands on your terminal


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



Comments

Popular posts from this blog

Rails Memcache issues

Rails working with multiple databases customize the generator | Rails, multiple databases, customize generator

Ruby on Rails 3.x Skip callback and validation and reset Callback | Ruby on Rails, Skip callback, validation, reset Callback