Command to start nodejs? Server.js and app.js missing The outdated documentation for drupal integration of nodejs using the nodejs module instructs me to start  nodejs with the command node server.js. 

But neither server.js or app.js (replacement to server.js) exists 

I can see a file called nodejs.js but running node nodejs.js produces this error;

ReferenceError: jQuery is not defined
    at Object.&lt;anonymous&gt; (/data/disk/o1/static/hood-7.43.1/sites/all/modules/nodejs/nodejs.js:132:4)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:501:10)
    at startup (node.js:129:16)
    at node.js:814:3


What is the command for starting nodejs?
If you're downloading the app from github directly, follow these instructions:


Download the archive
Extract to a folder oustide of Drupal's root (this app is separate to your Drupal installation so shouldn't be within)
cd to the folder and run npm install
Run cp nodejs.config.js.example nodejs.config.js, edit the resulting file as required
Run node app.js


Voila, server up and running.

If you're using the npm install drupal-node.js approach, the instructions are a bit unclear. To clarify:


Create a folder outside of the Drupal root
cd to it and run npm install drupal-node.js
Run cp node_modules/drupal-node.js/nodejs.config.js.example nodejs.config.js, edit as required
Run node node_modules/drupal-node.js/app.js to start the server


You should see the same result as the first method.