提交 77a3b330 编写于 作者: J Joao Moreno

catch node 9 usage

上级 707787c5
......@@ -8,7 +8,12 @@ let err = false;
const major = parseInt(/^(\d+)\./.exec(process.versions.node)[1]);
if (major < 8) {
console.error('\033[1;31m*** Please use node>=8.\033[0;0m');
console.error('\033[1;31m*** Please use node >=8 and <9.\033[0;0m');
err = true;
}
if (major >= 9) {
console.error('\033[1;31m*** Please use node >=8 and <9.\033[0;0m');
err = true;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册