@mintlify/cli 4.0.811 → 4.0.813

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/cli.js CHANGED
@@ -58,10 +58,15 @@ export const cli = ({ packageName = 'mint' }) => {
58
58
  }
59
59
  const versionArr = nodeVersionString.split('.');
60
60
  const majorVersion = parseInt(versionArr[0], 10);
61
+ const minorVersion = parseInt(versionArr[1], 10);
61
62
  if (majorVersion >= 25) {
62
63
  addLog(_jsx(ErrorLog, { message: "mint dev is not supported on node versions 25+. Please downgrade to an LTS node version." }));
63
64
  yield terminate(1);
64
65
  }
66
+ if (majorVersion < 20 || (majorVersion === 20 && minorVersion < 17)) {
67
+ addLog(_jsx(ErrorLog, { message: "mint dev is not supported on node versions below 20.17 Please upgrade to an LTS node version." }));
68
+ yield terminate(1);
69
+ }
65
70
  const port = yield checkPort(argv);
66
71
  const { cli: cliVersion } = getVersions();
67
72
  if (port != undefined) {