From df40bb39e28d34b0aa192222376c8389e7d0a48c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A1=E8=89=B2?= Date: Mon, 27 Nov 2023 00:28:35 +0800 Subject: [PATCH] fix(cli): fix node version (#1719) --- schematics/ng-add/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schematics/ng-add/index.ts b/schematics/ng-add/index.ts index bdbfc8bf69..13fcf4ac09 100644 --- a/schematics/ng-add/index.ts +++ b/schematics/ng-add/index.ts @@ -63,7 +63,7 @@ export default function (options: NgAddOptions): Rule { // } const nodeVersion = getNodeMajorVersion(); - const allowNodeVersions = [16, 18]; + const allowNodeVersions = [18, 20]; if (!allowNodeVersions.some(v => nodeVersion === v)) { const versions = allowNodeVersions.join(', '); throw new SchematicsException(