HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/linde-ai/html/requirementsCheck.js
const { engines } = require("./package.json");
const requiredVersion = engines.node;
const majorVersionRequired = parseInt(engines.node.split(".")[0].replace(">", "").replace("=", ""), 10);
const majorVersionActive = parseInt(process.version.split(".")[0].replace("v", ""), 10);
const nvmLinkWindows = "https://github.com/coreybutler/nvm-windows";
const nvmLinkUnix = "https://github.com/nvm-sh/nvm";

if (majorVersionActive < majorVersionRequired) {
  throw new Error(
    `\n\nThe current Node version ${
      process.version
    } does not satisfy the requirements of this project for Node version ${requiredVersion}.
    \nIf you have "nvm" installed, use command "nvm use x.x.x" (where x.x.x is the version that meets requirements) to switch to the required Node version.
    \nIf you don't have any installed, use "nvm install ${majorVersionRequired}.x.x" to install latest version for that major Node version (check latest v${majorVersionRequired} version here https://nodejs.org/en/download/releases/).
    \nIf you don't have NVM (Node Version Manager), you will have to install it first (${
      process.platform === "win32" ? nvmLinkWindows : nvmLinkUnix
    }).
    \n`,
  );
}