@mintlify/cli 4.0.792 → 4.0.794

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
@@ -52,6 +52,16 @@ export const cli = ({ packageName = 'mint' }) => {
52
52
  .usage('usage: mintlify dev [options]')
53
53
  .example('mintlify dev', 'run with default settings (opens in browser)')
54
54
  .example('mintlify dev --no-open', 'run without opening in browser'), (argv) => __awaiter(void 0, void 0, void 0, function* () {
55
+ let nodeVersionString = process.version;
56
+ if (nodeVersionString.charAt(0) === 'v') {
57
+ nodeVersionString = nodeVersionString.slice(1);
58
+ }
59
+ const versionArr = nodeVersionString.split('.');
60
+ const majorVersion = parseInt(versionArr[0], 10);
61
+ if (majorVersion >= 25) {
62
+ addLog(_jsx(ErrorLog, { message: "mint dev is not supported on node versions 25+. Please downgrade to an LTS node version." }));
63
+ yield terminate(1);
64
+ }
55
65
  const port = yield checkPort(argv);
56
66
  const { cli: cliVersion } = getVersions();
57
67
  if (port != undefined) {