title: Getting Node Module Error (Cannot find module)
body: <p>I am learning the Automated tests by using selenium web driver + Javascript and node.js.
  Everything is working fine when I ran that script.js from the Visual Studio code terminal(by using node main.js)</p>
  <p><strong>Problem</strong>
  I want to schedule this script in the scheduler which automatically tests the login functionality. But when I try to run it from the task scheduler then it gives <strong>Error: Cannot find module</strong></p>
  <p><a href="https://i.stack.imgur.com/DV35v.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DV35v.png" alt="Error" /></a></p>
  <p>Does anybody know how to get rid of this.</p>