Ruby on Rails - execJs: 'Could not find a JavaScript runtime'

by 7:17 AM 2 comments
Setting up a new VPS for a small app I'm working on and was stumped by this problem.  This didn't happen locally and after discovering the solution I knew why.  The reason why is I did not have nodeJs install on the VPS.  As I have been working on a nodeJs app in the past few months I already have node installed locally.

I'm running ubuntu and here are the commands to install nodeJs:

sudo apt-get install python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs 
This will install the current stable version of nodeJs.  After that I was in business.


  1. Thanks a lot for sharing this nice post regarding the details of VPS for a small app.Its a good post and I really understood everything that you tell here.Its a nice post and happy to see from you.Have you worried to write an essay?Visit cheap essay writing service.The introduction should be general and then make your essay the specific. Everything about essay body is clear, and you must explain your topic. Main idea of your essay topic must be cleared and you must write it in an excellent way.