We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcaecb6 commit a1fa28bCopy full SHA for a1fa28b
packages/cli/bin/run.js
@@ -1,10 +1,13 @@
1
#!/usr/bin/env node
2
+import process from 'node:process';
3
import semver from 'semver';
4
import { execute } from '@oclif/core';
5
import { nodeVersion } from '../dist/version.js';
6
7
if (!semver.satisfies(process.version, nodeVersion)) {
- console.error(`Node.js version ${nodeVersion} is required. Current version: ${process.version}`);
8
+ process.stderr.write(
9
+ `Node.js version ${nodeVersion} is required. Current version: ${process.version}\n`,
10
+ );
11
process.exit(1);
12
}
13
0 commit comments