[ruby-on-rails] execJs: 'Could not find a JavaScript runtime' but execjs AND therubyracer are in Gemfile

I had this occur to me on my Windows machine, turns out the problem was quite different. I had accidentally removed some paths from my %PATH% variable. Simply restarting the command prompt solved it. It seems as though there was a JS runtime in one of those missing paths.