From 388de479659b29bba0251ce2f7c134cc6c0047ad Mon Sep 17 00:00:00 2001 From: rk Date: Fri, 18 Sep 2026 15:09:17 +0500 Subject: [PATCH] fix(@schematics/angular): update @types/node to a version vitest 5 accepts `ng new --ssr` and `ng add @angular/ssr` fail to install their dependencies: the server schematic adds `@types/node@^20.17.19`, and vitest 5, which the same schematics now add, has `@types/node@^22.0.0 || >=24.0.0` as a peer. npm refuses the tree and the workspace is left without `node_modules`. `^22.12.0` is what this repository uses for `@types/node` itself, and Node 20 is already outside the `engines.node` range of the generated project. --- .../schematics/angular/utility/latest-versions/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/schematics/angular/utility/latest-versions/package.json b/packages/schematics/angular/utility/latest-versions/package.json index 111c8296c202..75481eb2b23d 100644 --- a/packages/schematics/angular/utility/latest-versions/package.json +++ b/packages/schematics/angular/utility/latest-versions/package.json @@ -5,7 +5,7 @@ "dependencies": { "@types/express": "^5.0.1", "@types/jasmine": "~6.0.0", - "@types/node": "^20.17.19", + "@types/node": "^22.12.0", "browser-sync": "^3.0.0", "express": "^5.1.0", "istanbul-lib-instrument": "^6.0.3",