You can set and use environment variables within NodeJS processes as below:

Windows:

set APP_NODE_VERSION_CHECK=false

Unix:

export APP_NODE_VERSION_CHECK=false

and inside your app javascript you can check across this as

if(process.env.APP_NODE_VERSION_CHECK === 'false') {
    // Disable version check.
}
else { ... }

 

Advertisements