Skip to content

Commit

Permalink
Fix min NodeJS version check (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
lcampos authored Sep 30, 2024
1 parent d68fec2 commit a626269
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dotenv.config();

const MIN_NODE_VERSION = "20.0.0";

if (gte(MIN_NODE_VERSION, process.versions.node)) {
if (!gte(MIN_NODE_VERSION, process.versions.node)) {
await printCriticalFailureToConsoleAndExit(
`The Rate My OpenAPI CLI requires at least node.js v${MIN_NODE_VERSION}. You are using v${process.versions.node}. Please update your version of node.js.
Expand Down

0 comments on commit a626269

Please sign in to comment.