title: How to execute npm run command forever
body: <p><a href="https://i.stack.imgur.com/FWeqO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FWeqO.png" alt="enter image description here"></a>
  I have an application with <code>angular</code> in the font
  end and <code>node.js</code> in the back end. I have deployed the application in a same server. My <code>angular</code> one is running forever. But back end was not running forever.
  From local I used to run the back end using </p>
  
  <p><code>npm run dev-server</code></p>
  
  <p>After some research I found that installing forever server can be the way. But when running the below command in the server I am getting error</p>
  
  <p>This is the command:
  In unix server
  <code>sudo forever -c "npm run dev-server" ./</code></p>
  
  <p>But it gives me error.</p>
  
  <p>Can anyone suggest how to run the backend <code>node.js`` application forever with</code>npm run` command.</p>