Commit 388de47
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
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments