title: How to fix Error Modules Not found on Node/npm/pm2 in Linux Server?
body: <p>Hello Stackoverflow people!</p>
  <p>I have a web app hosted on a Linux server running with pm2 installed. I encountered an error in the log which I haven't seen before. The error is as follow:</p>
  <pre><code>1|joo-api  |     at tryModuleLoad (module.js:505:12)
  1|joo-api  |     at Function.Module._load (module.js:497:3)
  1|joo-api  |     at Function.Module.runMain (module.js:693:10)
  1|joo-api  |     at startup (bootstrap_node.js:188:16) code: 'MODULE_NOT_FOUND' }
  1|joo-api  | { Error: Cannot find module '/srv/joo-api'
  1|joo-api  |     at Function.Module._resolveFilename (module.js:547:15)
  1|joo-api  |     at Function.Module._load (module.js:474:25)
  1|joo-api  |     at Object.&lt;anonymous&gt; (/usr/local/lib/node_modules/pm2/lib/ProcessContainerFork.js:27:21)
  1|joo-api  |     at Module._compile (module.js:652:30)
  1|joo-api  |     at Object.Module._extensions..js (module.js:663:10)
  1|joo-api  |     at Module.load (module.js:565:32)
  1|joo-api  |     at tryModuleLoad (module.js:505:12)
  1|joo-api  |     at Function.Module._load (module.js:497:3)
  1|joo-api  |     at Function.Module.runMain (module.js:693:10)
  1|joo-api  |     at startup (bootstrap_node.js:188:16) code: 'MODULE_NOT_FOUND' }
  
  /home/appadmin/.pm2/logs/joo-app-error.log last 15 lines:
  0|joo-app  |     at tryModuleLoad (module.js:505:12)
  0|joo-app  |     at Function.Module._load (module.js:497:3)
  0|joo-app  |     at Function.Module.runMain (module.js:693:10)
  0|joo-app  |     at startup (bootstrap_node.js:188:16) code: 'MODULE_NOT_FOUND' }
  0|joo-app  | { Error: Cannot find module '/srv/joo-app'
  0|joo-app  |     at Function.Module._resolveFilename (module.js:547:15)
  0|joo-app  |     at Function.Module._load (module.js:474:25)
  0|joo-app  |     at Object.&lt;anonymous&gt; (/usr/local/lib/node_modules/pm2/lib/ProcessContainerFork.js:27:21)
  0|joo-app  |     at Module._compile (module.js:652:30)
  0|joo-app  |     at Object.Module._extensions..js (module.js:663:10)
  0|joo-app  |     at Module.load (module.js:565:32)
  0|joo-app  |     at tryModuleLoad (module.js:505:12)
  0|joo-app  |     at Function.Module._load (module.js:497:3)
  0|joo-app  |     at Function.Module.runMain (module.js:693:10)
  0|joo-app  |     at startup (bootstrap_node.js:188:16) code: 'MODULE_NOT_FOUND' }
  </code></pre>
  <p>and now pm2 status is <strong>errored</strong></p>
  <p>I tried pm2 kill, restart, start, node update and pm2 update. All did not work. Anyone have any idea what causing it?</p>