title: Using nohup for Node.js on Amazon ec2
body: <p>I am trying to get my Node app running reliably from an amazon ec2 instance. I have tried:</p>
  
  <ol>
  <li><p>to install forever I get a ton of errors:</p>
  
  <p>npm ERR! Error: ENOENT,
  ...
  50 lines of errors
  ...
  npm ERR! fstream_stack Object.oncomplete (fs.js:96:15)</p></li>
  <li><p>nohup node server.js &amp;</p></li>
  </ol>
  
  <p>Method 2 works but it doesn't start my app again if it goes down. Can someone show me how to use nohup to also restart the app if it goes down?
  Thanks!</p>