Therubyracer is unstable between platforms, platform versions, ruby interpreters and even ruby versons. I personally couldn't install it on non-ree 1.8.7 and Windows (railsgirls), and had issues installing it on other combinations. Pretty much everytime there's native component compilation issue, it is therubyracer. I never had issues installing Node.js.
therubyracer is officially discouraged by heroku as it uses lot of memory. One the other hand node.js is very lightweight.
using therubyracer on server is just like installing node that can be used only by ruby apps (libv8)
btw. Node.js is necessary only on Windows and Ubuntu development, on Mac dev execjs is using JavaScriptCore.
My reasons:
btw. Node.js is necessary only on Windows and Ubuntu development, on Mac dev execjs is using JavaScriptCore.