title: Couldn't find .env file in node.js project
body: <p>I'm new to node.js. I have a node.js with react front end application. I'm saving environment variables in .env file which is under root folder. I added this .env file in root folder so that i can use these variable in client and server. But, When i run npm start, i get below error. Somehow, node is searching for .env file in server folder. </p>
  
  <pre><code>Error: ENOENT: no such file or directory, open 'C:\Users\xxxx\source\repos\my-app\server\.env'
  at Object.openSync (fs.js:440:3)
  at Object.readFileSync (fs.js:342:35)
  at Object.config (C:\Users\xxxx\source\repos\my-app\server\node_modules\dotenv\lib\main.js:96:29)      
  at Object.&lt;anonymous&gt; (C:\Users\xxxx\source\repos\my-app\server\server.js:2:26)
  at Module._compile (internal/modules/cjs/loader.js:955:30)
  at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)
  at Module.load (internal/modules/cjs/loader.js:811:32)
  at Function.Module._load (internal/modules/cjs/loader.js:723:14)
  at Function.Module.runMain (internal/modules/cjs/loader.js:1043:10)
  at internal/main/run_main_module.js:17:11 {
  errno: -4058,
  syscall: 'open',
  code: 'ENOENT',
  path: 'C:\\Users\\xxxx\\source\\repos\\my-app\\server\\.env'
  }
  </code></pre>