XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

SpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 1 Star 0
UTF-8
const [major, minor] = process.versions.node.split(".").map(x => parseInt(x));
if (major > 22 || (major == 22 && minor >= 6)) {
    // ok
} else {
    console.log("Sorry, your Node version is a bit too old for this. You have 2 options:");
    console.log("- Update Node.js.");
    console.log("- Use 'npm run build && npm run start'. Optional libraries must be installed for this.");
    process.exit(1);
}