Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk committed Oct 31, 2023
1 parent 292e8a3 commit 4b6b0c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions schematics/ng-add/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ export default function (options: NgAddOptions): Rule {
}

const nodeVersion = getNodeMajorVersion();
const allowNodeVersions = [14, 16, 18];
const allowNodeVersions = [16, 18];
if (!allowNodeVersions.some(v => nodeVersion === v)) {
const versions = allowNodeVersions.join(', ');
throw new SchematicsException(
`Sorry, currently only supports ${versions} major version number of node (Got ${process.version}), pls refer to https://gist.github.com/LayZeeDK/c822cc812f75bb07b7c55d07ba2719b3`
`Sorry, currently only supports ${versions} major version number of node (Got ${process.version}), pls refer to https://angular.io/guide/versions`
);
}

Expand Down

0 comments on commit 4b6b0c9

Please sign in to comment.