If generator fails because NPM is too old, exit with nonzero status code
This commit is contained in:
parent
4dd91a9b78
commit
495c95d227
|
|
@ -186,7 +186,7 @@ function assertNpmVersionIsAtLeast(minVersion: string) {
|
|||
const runningVersion = execSync('npm -v').toString();
|
||||
if (!semver.gte(runningVersion, minVersion, /* loose */ true)) {
|
||||
console.error(`This generator requires NPM version ${minVersion} or later. You are running NPM version ${runningVersion}`);
|
||||
process.exit(0);
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue