Skip to content

Commit

Permalink
fix: drop node 14
Browse files Browse the repository at this point in the history
  • Loading branch information
MHuiG authored Jul 26, 2022
1 parent 92b6cd0 commit 694046b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/events/lib/check-environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ module.exports =(hexo) => {
CheckError(hexo,`node.js: ${err}`);
}
let nodeVersion = stdout.match(/v(\d*)/)[1];
if (nodeVersion<14) {
if (nodeVersion<16) {
hexo.log.info(`node.js 版本:${stdout}`);
CheckError(hexo,`node.js 版本过低,请升级至 v14.x 以上版本!`);
CheckError(hexo,`node.js 版本过低,请升级至 v16.x 及以上版本!`);
}else{
exec('hexo -v', (err, stdout, stderr) => {
if (err) {
Expand Down Expand Up @@ -69,4 +69,4 @@ function CheckConfError(hexo,msg) {
${msg}
============================================================`);
throw new Error('配置文件检查失败!| Configuration check failed!');
}
}

0 comments on commit 694046b

Please sign in to comment.