Skip to content

Commit 4133d80

Browse files
committed
feat: add runtime check for node v
1 parent c583d62 commit 4133d80

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/app.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ const commands = {
105105

106106

107107
(async () => {
108+
if(parseInt(process.versions.node.split(".")[0], 10) < 16) {
109+
console.error('You are using a node version earlier than 16, please update it and retry');
110+
return;
111+
}
108112
cliMd = (await import('cli-markdown')).default;
109113
const api = await getClient();
110114
const args = process.argv.slice(4);

0 commit comments

Comments
 (0)