Skip to content

Commit 694046b

Browse files
authored
fix: drop node 14
1 parent 92b6cd0 commit 694046b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/events/lib/check-environment.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ module.exports =(hexo) => {
1212
CheckError(hexo,`node.js: ${err}`);
1313
}
1414
let nodeVersion = stdout.match(/v(\d*)/)[1];
15-
if (nodeVersion<14) {
15+
if (nodeVersion<16) {
1616
hexo.log.info(`node.js 版本:${stdout}`);
17-
CheckError(hexo,`node.js 版本过低,请升级至 v14.x 以上版本!`);
17+
CheckError(hexo,`node.js 版本过低,请升级至 v16.x 及以上版本!`);
1818
}else{
1919
exec('hexo -v', (err, stdout, stderr) => {
2020
if (err) {
@@ -69,4 +69,4 @@ function CheckConfError(hexo,msg) {
6969
${msg}
7070
============================================================`);
7171
throw new Error('配置文件检查失败!| Configuration check failed!');
72-
}
72+
}

0 commit comments

Comments
 (0)