SETUP TEST Install PhantomJS http://phantomjs.org/ add phantomjs to path You should be able to run 'phantomjs' from terminal npm install node main.js