Octopress : Could not find a JavaScript runtime

Octopress, which is now a days considered as awesome html site generator.It is a framework based on Jekyll.Regulalry I explore the Octopress and Jekyll both. Octopress has lots of feature over jekyll.

In my last, I wrote post on How to install Octopress on CentOS/Redhat.
This time , I tried new Octopress installation on Ubuntu 14.04 LTS Desktop edition. After completeing all installation steps. I tried to start rail server by command rake preview . But I got this –

/usr/local/rvm/gems/ruby-2.1.2/gems/execjs-2.2.0/lib/execjs/runtimes.rb:51:in `autodetect’: Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)

The given below is reference from my desktop.
octopress javascript error

I checked this URL https://github.com/sstephenson/execjs and got the idea what I was missing in my Ubuntu system.


To solve this issue, I installed nodejs

sudo apt-get install nodejs

Now I again ran the command rake preview inside octopress dir. And the error was gone.

See the below given reference from my system


Now octopress is up and running at port no. 4000. Check it with localhost:4000


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.