• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

Octopress : Could not find a JavaScript runtime

June 29, 2014 by Sharad Chhetri Leave a Comment

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.

Solution:

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

octopress

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

octopress

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. How to install Octopress on Ubuntu 14.04 LTS
  2. How to install Octopress in CentOS 6 and RHEL 6
  3. How to change Port number for Octopress rake preview
  4. show post excerpt in atoms feed of octopress
  5. Print double hyphen sign simultaneously in post of Octopress
  6. Configure Nginx for Jekyll / Octopress / pelican based static website

Filed Under: Linux, Octopress Tagged With: Octopress

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

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

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Command

What is Linux Internal And External Command

Linux Basic Commands With Examples For Every Beginner

tr command to convert lines to space , tab and vertical tab

smbpasswd command not found on CentOS 7 and RHEL 7

Solution : semanage command not found

Unix / Linux : How to print duplicate lines from file

More Posts from this Category

You Might Like These Articles!

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Failed to open/create the internal network

VirtualBox Error: Failed to open/create the internal network

Always Useful Tips And Tricks

set and unset line number in file with vi editor

df command not showing correct free space in linux

Convert hyphen to underscore in between all filenames shell script

Set GRUB password after installation of CentOS/Red Hat

Run the script using nohup without hitting enter key two times

How to zip directory in linux explained with examples

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

Explore 90+ Article On "Linux Tips And Tricks"

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy