title: Node error: Cannot find module './clone.js'
body: <p>I'm working on app using node and postgresql. Recently I updated nodemon and started getting an error when I start my nodemon server: Cannot find module './clone.js'. Here is the code of the error:</p>
  
  <pre><code>Error: Cannot find module './clone.js'
      at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
      at Function.Module._load (internal/modules/cjs/loader.js:506:25)
      at Module.require (internal/modules/cjs/loader.js:636:17)
      at require (internal/modules/cjs/helpers.js:20:18)
      at Object.&lt;anonymous&gt; (/usr/local/lib/node_modules/nodemon/node_modules/graceful-fs/graceful-fs.js:4:13)
      at Module._compile (internal/modules/cjs/loader.js:688:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
      at Module.load (internal/modules/cjs/loader.js:598:32)
      at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
      at Function.Module._load (internal/modules/cjs/loader.js:529:3)
  </code></pre>
  
  <p>I checked that on Github and it said that this is recent bug and it was supposed to be fixed with next update. I waited until the update but still had the same error. I reinstalled nodemon, removed node_modules and did <code>npm install</code>. Somebody in Github issue page was suggesting to put clone.js in files array which is fine already. graceful-fs.js starts with code:</p>
  
  <pre><code>var fs = require('fs')
  var polyfills = require('./polyfills.js')
  var legacy = require('./legacy-streams.js')
  var clone = require('./clone.js')
  </code></pre>
  
  <p>In the same folder there is already file clone.js with content, so now I'm really confused. Please help</p>
  
  <p><a href="https://i.stack.imgur.com/P5EQh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P5EQh.png" alt="file structure of my app"></a></p>