title: Error: internal/modules/cjs/loader.js:968 throw err; node module?
body: <p>I was following <a href="https://www.youtube.com/watch?v=xZMwg5z5VGk" rel="nofollow noreferrer"> this </a> YouTube tutorials series but suddenly while running server i got this problem
  I tried re-uninstalling node to latest stable version.</p>
  <pre class="lang-none prettyprint-override"><code>internal/modules/cjs/loader.js:968
    throw err;
    ^
  
  Error: Cannot find module 'D:\DATA\Learning\Creations\WEB\website\tabs tracker\Vue-and-Express.JS\server\scr\app.js'
      at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
      at Function.Module._load (internal/modules/cjs/loader.js:841:27)
      at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
      at internal/main/run_main_module.js:17:47 {
    code: 'MODULE_NOT_FOUND',
    requireStack: []
  }
  </code></pre>
  <p>code of app.js</p>
  <pre class="lang-js prettyprint-override"><code>const express = require('express')
  const bodyParser = require('body-parser')
  const morgan = require('morgan')
  const cors = require('cors')
  const { sequelize } = require('./models')
  const config = require('./config/config')
  
  const app = express()
  
  app.use(morgan('combined'))
  app.use(bodyParser.json())
  app.use(cors())
  
  require('./routes')(app)
  
  sequelize.sync().then(() =&gt; {
    app.listen(config.port)
    console.log(`Serverstarted on port ${config.port}`)
  })
  
  </code></pre>
  <p>package.json</p>
  <pre><code>{
    &quot;name&quot;: &quot;server&quot;,
    &quot;version&quot;: &quot;1.0.0&quot;,
    &quot;description&quot;: &quot;&quot;,
    &quot;main&quot;: &quot;server.js&quot;,
    &quot;scripts&quot;: {
      &quot;start&quot;: &quot;node ./node_modules/nodemon/bin/nodemon.js scr/app.js --exec \&quot;npm run lint &amp;&amp; node\&quot;&quot;,
      &quot;lint&quot;: &quot;./node_modules/.bin/eslint **/*.js&quot;
    },
    &quot;keywords&quot;: [],
    &quot;author&quot;: &quot;&quot;,
    &quot;license&quot;: &quot;ISC&quot;,
    &quot;dependencies&quot;: {
      &quot;body-parser&quot;: &quot;^1.19.0&quot;,
      &quot;cors&quot;: &quot;^2.8.5&quot;,
      &quot;express&quot;: &quot;^4.17.1&quot;,
      &quot;joi&quot;: &quot;^17.2.0&quot;,
      &quot;morgan&quot;: &quot;^1.10.0&quot;,
      &quot;sequelize&quot;: &quot;^6.3.4&quot;,
      &quot;sqlite3&quot;: &quot;^5.0.0&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;eslint&quot;: &quot;^7.7.0&quot;,
      &quot;nodemon&quot;: &quot;^2.0.4&quot;,
      &quot;eslint-config-standard&quot;: &quot;^14.1.1&quot;,
      &quot;eslint-plugin-import&quot;: &quot;^2.22.0&quot;,
      &quot;eslint-plugin-node&quot;: &quot;^11.1.0&quot;,
      &quot;eslint-plugin-promise&quot;: &quot;^4.2.1&quot;,
      &quot;eslint-plugin-standard&quot;: &quot;^4.0.1&quot;,
      &quot;eslint-plugin-vue&quot;: &quot;^6.2.2&quot;
    }
  }
  
  </code></pre>