Skip to content
Chris edited this page Mar 9, 2012 · 4 revisions

Install a JavaScript runtime

Sometimes the rails app may need a JavaScript runtime, and a simple way is to install Node.js:

sudo aptitude install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo aptitude update
sudo aptitude install nodejs
which node
echo $PATH

then ensure that node is in the path ... usually it's installed in /usr/local/bin or /usr/bin/node so just ensure it's in $PATH.

For more information on about javascript runtimes see execjs.


Clone this wiki locally