title: Nodemon kept looking for index.js
body: <p>My <strong>Nodemon</strong> kept start and looking for <code>index.js</code>, but I want to use <code>app.js</code> as most people now use <code>app.js</code>.</p>
  
  <p><a href="https://i.stack.imgur.com/GVcNk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GVcNk.png" alt="enter image description here"></a></p>
  
  <p>How do I update my nodemon to look for app.js instead ? </p>
  
  <p>I tried to uninstall, reinstall is not help.</p>
  
  <hr>
  
  <pre><code>⚡️  vidjot  nodemon
  [nodemon] 1.17.3
  [nodemon] to restart at any time, enter `rs`
  [nodemon] watching: *.*
  [nodemon] starting `node index.js`
  module.js:540
      throw err;
      ^
  
  Error: Cannot find module '/Users/bheng/Sites/vidjot/index.js'
      at Function.Module._resolveFilename (module.js:538:15)
      at Function.Module._load (module.js:468:25)
      at Function.Module.runMain (module.js:684:10)
      at startup (bootstrap_node.js:187:16)
      at bootstrap_node.js:608:3
  [nodemon] app crashed - waiting for file changes before starting...
  </code></pre>
  
  <hr>
  
  <p><strong>package.json</strong></p>
  
  <pre><code>{
    "name": "vidjot",
    "version": "1.0.0",
    "description": "app to create video idea",
    "main": "index.js",
    "scripts": {
      "test": "echo \"Error: no test specified\" &amp;&amp; exit 1"
    },
    "author": "",
    "license": "ISC",
    "dependencies": {
      "express": "^4.16.3"
    }
  }
  </code></pre>