Skip to content

Commit

Permalink
fix #471
Browse files Browse the repository at this point in the history
  • Loading branch information
mStirner committed May 31, 2024
1 parent 2d02fc9 commit a8b1192
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const process = require("process");
const pkg = require("./package.json");
const { exec } = require("child_process");
const uuid = require("uuid");
const semver = require("semver");


const env = require("dotenv").config({
Expand Down Expand Up @@ -120,6 +121,12 @@ if (process.env.NODE_ENV !== "production") {
}


// see #471
if (!semver.satisfies(process.versions.node, pkg.engines.node)) {
logger.warn(`> OpenHaus runs not on supported node.js version! (got: "%s", needed: "%s")`, process.versions.node, pkg.engines.node);
}


if (process.env.GC_INTERVAL !== null && global.gc) {
setInterval(() => {
try {
Expand Down

0 comments on commit a8b1192

Please sign in to comment.