title: how to resolve can not find module in node js
body: <p>I have my project at desktop. And i have deleted the node_modules folder and reinstall it. But it is not working. Please help me resolve it. I have tried other methods on stack-overflow but they are not working for me i don't know whats wrong. Please help for sake of my final project.
  my folder setup: </p>
  
  <pre><code>Ols
     +--app.js
     +--package.json
     +--package-lock.json
     +--views
              +--allejs
     +--public
              +--cs
              +---images
     +node_modules
  </code></pre>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var express = require("express");
  var app = express();
  var bodyParser = require("body-parser");
  app.use(express.static("public"));
  mongoose.connect("mongodb://localhost/ols");
  app.use(bodyParser.urlencoded({extended: true}));
  app.set("view engine", "ejs");
  
  
  app.get("/", function(req, res) {
   res.render("ols");
  });
  app.get("/home", function(req, res) {
   res.render("ols");
  });
  app.get("/alLlaptops", function(req, res) {
   res.render("allLaptops");
  });
  app.get("/contact", function(req, res) {
   res.render("contact");
  });
  app.get("/signup", function(req, res) {
   res.render("signup");
  });
  app.get("/login", function(req, res) {
   res.render("login");
  });
  app.get("/addtocart", function(req, res) {
   res.render("addtocart");
  });
  
  
  app.listen(3000, function() {
   console.log("Server is listening!!!");
  });</code></pre>
  </div>
  </div>
  </p>
  
  <pre><code> module.js:538
          throw err;
          ^
          Error: Cannot find module 'C:\Users\Haider Ali\Desktop\OLS\OLS\views\app.js'
                  at Function.Module._resolveFilename (module.js:536:15)
                  at Function.Module._load (module.js:466:25)
                  at Function.Module.runMain (module.js:676:10)
                  at startup (bootstrap_node.js:187:16)
                  at bootstrap_node.js:608:3
  </code></pre>