Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(@angular/cli): ensure odd number Node.js version message is a warning #20051

Merged
merged 1 commit into from Feb 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/angular/cli/bin/ng
Expand Up @@ -24,12 +24,15 @@ if (version[0] % 2 === 1 && version[0] > 14) {
'Odd numbered Node.js versions will not enter LTS status and should not be used for production.' +
' For more information, please see https://nodejs.org/en/about/releases/.',
);

require('../lib/init');
} else if (
version[0] < 12 ||
version[0] === 13 ||
(version[0] === 12 && version[1] < 13) ||
(version[0] === 14 && version[1] < 15)
) {
// Error and exit if less than 12.13 or 13.x or less than 14.15
console.error(
'Node.js version ' +
process.version +
Expand Down