title: Forever: command not found
body: <p>I am getting a </p>
  
  <p><strong>forever: command not found</strong> error when I run a nodejs process using the forever command as a cronjob (in an amazon ec2 machine):
  the bash script I am using has the following code:</p>
  
  <p>cd to/location/of/the/nodejs/file</p>
  
  <p>forever start file.js</p>
  
  <p>but I am able to run this file by using bash script.sh but I get the forever:command not found error when I run it via cronjob</p>
  
  <p>I am confused dont know what could be the reason for this.</p>
  
  <p>Has anybody else faced this problem?</p>
  
  <p>Thanks in advance</p>