I am new to Node.JS. I found several articles about how we can use the .env file to configure the process.env variable, for example,
PORT = 8081
but when I run the program in my node, it is still 8080 PORT (by default). The question is how to configure the env variable in Node without the help of other third-party modules? (I found that there are several third-party packages for env configuration management, but ... it is confusing, another package may have different rules and more complex use cases, I want to start with a clear way to learn pure nodejs)
Update
I read a post about setting up a Node environment in StackOverFlow, but they refer to a third-party package, none of them provide detailed steps. (Either the Windows system environment or the Linux environment variables ... but how can I put this parameter in the project folder ?!)
source share