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.