On Ubuntu
To run a simple Javascript function, in Ubuntu, I followed the advice in this earthviaradio blog post and installed node.js. On Ubuntu, here is what I did.- Installed node.js.
sudo apt-get install nodejs
var sys=require("util"); sys.puts("This is a test javascript file. Hello world!");
node test.js
On Mac
If you already have homebrew, you can install node.js with this command.brew install node
Then, you can run it in the same way as I noted above.
http://www.hongkiat.com/blog/node-js-server-side-javascript/
No comments:
Post a Comment