Fix version issue.

This commit is contained in:
HonokaClub 2018-02-15 16:37:30 +08:00 committed by GitHub
parent 527cc33afe
commit 97a96daf92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
app.js
View File

@ -1,7 +1,7 @@
//运行时环境检测
try {
let versionNum = parseInt(process.version.replace(/v/igm, "").split(".")[0]);
if (versionNum < 9) {
if (versionNum < 8) {
console.log("[ ERROR ] 您的 Node 运行环境版本似乎低于我们要求的版本.");
console.log("[ ERROR ] 可能会出现未知异常,请立即更新 Node 版本 (>=8.0.0)");
}
@ -238,4 +238,4 @@ app.use('/fs', require('./onlinefs/controller/function'));
});
})();
})();