mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
allow running any version of LTS
Given node 18 and 20, allow running on any LTS version of node. We can block out bad versions if needed.
This commit is contained in:
@@ -39,7 +39,7 @@ function boot (env, language) {
|
||||
|
||||
const isLTS = process.release.lts ? true : false;
|
||||
|
||||
if (isLTS && (semver.satisfies(nodeVersion, '^16.0.0') || semver.satisfies(nodeVersion, '^14.0.0'))) {
|
||||
if (isLTS || (semver.satisfies(nodeVersion, '^16.0.0') || semver.satisfies(nodeVersion, '^14.0.0'))) {
|
||||
//Latest Node 14 LTS and Node 16 LTS are recommended and supported.
|
||||
//Require at least Node 14 without known security issues
|
||||
console.debug('Node LTS version ' + nodeVersion + ' is supported');
|
||||
|
||||
Reference in New Issue
Block a user