title: Phantomjs on windows
body: <p>i have the following very simple code:</p>
  
  <pre><code> var phantom = require('phantomjs');
  phantom.create(function(ph){
                  ph.createPage(function(page) {
                      page.open("http://www.google.com", function(status) {
                          page.render('google.pdf', function(){
                              console.log('Page Rendered');
                              ph.exit();
                          });
                      });
                  });
              });
  </code></pre>
  
  <p>When i run this i get an <code>undefined is not a function</code> error at the line  <code>phantom.create()</code></p>
  
  <p>I am right now sitting on a windows machine and read somewhere that i might have to use something called <code>dnode</code> my question is could this be the cause of the error or is there something in the code that might be wrong?</p>
  
  <p><strong>Update</strong></p>
  
  <p>I've changed <code>var phantom = requiere(phantomjs)</code> to be <code>var phantom = requiere(phantom)</code>, but now i get the error:</p>
  
  <pre><code>phantom stderr: 'phantomjs' is not recognised as an internal or external kommand, a program or a batchfil.
  ...    
  AssertionError: abnormal phantomjs exit code: 1
  </code></pre>