![]() ![]() Then I noticed it wasn't trickling down to my modules/services, so I used 'if MIA' logic if(!process.env. ![]() Exit from Node CLI: We can use process.exit () command to exit from Node CLI. Check Node JS Version: Use the following command to know your Node JS Version from Command prompt. It contains a vendored copy of the gyp-next project that was previously used by the Chromium team, extended to support the development of Node.js native addons. node-gyp is a cross-platform command-line tool written in Node.js for compiling native addon modules for Node.js. However, in my app.js I have require('./env') referencing an env.js file I saved. Now we are able to see > prompt, that means our Node JS Base Environment Setup is done. node-gyp - Node.js native addon build tool. I tried dotenv originally, but I was having an issue where every URL was claiming it was undefined or NULL.Īfter giving it some thought I thought just 'requiring' the env should work, and it is. I'm unable to get an environment variable to load properly on Windows OS for Node.
0 Comments
Leave a Reply. |