title: How to set process.env from the file in NodeJS?
body: <p>I'm new to the Node.JS. I found few articles says we can use .env file to setup the process.env variable, e.g.,</p>
  
  <pre><code>PORT = 8081
  </code></pre>
  
  <p>but when I run the program in my node, it is still 8080 PORT (by default). The question is how can I setup the env variable in Node without any other 3rd party module's help? (I found there are few 3rd party package to management the env config, but... it is kind confused, different package might have different rule and more complex use cases; I want to start from clear way to study purely nodejs)</p>
  
  <p><strong>Update</strong></p>
  
  <p>I have read Node Environment Setting post on StackOverFlow, but they are refer using 3rd party package, none of them tells the detail steps. (Either windows system environment, or Linux environment variables... but how can I place the setting into my project folder?!)</p>