Skip to content

Commit 388de47

Browse files
committed
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.
1 parent 8c43889 commit 388de47

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/schematics/angular/utility/latest-versions

packages/schematics/angular/utility/latest-versions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"dependencies": {
66
"@types/express": "^5.0.1",
77
"@types/jasmine": "~6.0.0",
8-
"@types/node": "^20.17.19",
8+
"@types/node": "^22.12.0",
99
"browser-sync": "^3.0.0",
1010
"express": "^5.1.0",
1111
"istanbul-lib-instrument": "^6.0.3",

0 commit comments

Comments
 (0)