Command
update
Is this a regression?
The previous version in which this bug was not present was
No response
Description
I am trying to upgrade our Angular 21 app to Angular 22. But the process fails pretty much immediately with an unhelpful error message that does not point to any particular reason and I don't know how to investigate further.
Minimal Reproduction
Run the following command in this repo: https://github.com/mm-jhn/ng22-repro
ng update @angular/core@22 @angular/cli@22
(the first step from https://angular.dev/update-guide?v=21.0-22.0&l=2)
Exception or Error
The installed Angular CLI version is outdated.
Installing a temporary Angular CLI versioned 22.0.4 to perform the update.
An unhandled exception occurred: Process exited with code 1.
See "C:\Users\USERDIR\AppData\Local\Temp\ng-JsGysP\angular-errors.log" for further details.
Contents of logfile:
[error] Error: Process exited with code 1.
at ChildProcess.<anonymous> (D:\angular-repro\node_modules\@angular\cli\src\package-managers\host.js:65:28)
at ChildProcess.emit (node:events:509:28)
at maybeClose (node:internal/child_process:1124:16)
at ChildProcess._handle.onexit (node:internal/child_process:306:5)
Your Environment
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI : 21.2.13
Angular : 21.2.15
Node.js : 24.18.0
Package Manager : npm 11.12.1
Operating System : win32 x64
┌───────────────────────────┬───────────────────┬───────────────────┐
│ Package │ Installed Version │ Requested Version │
├───────────────────────────┼───────────────────┼───────────────────┤
│ @angular/build │ 21.2.13 │ 21.2.13 │
│ @angular/cli │ 21.2.13 │ 21.2.13 │
│ @angular/common │ 21.2.15 │ 21.2.15 │
│ @angular/compiler │ 21.2.15 │ 21.2.15 │
│ @angular/compiler-cli │ 21.2.15 │ 21.2.15 │
│ @angular/core │ 21.2.15 │ 21.2.15 │
│ @angular/forms │ 21.2.15 │ 21.2.15 │
│ @angular/localize │ 21.2.15 │ 21.2.15 │
│ @angular/platform-browser │ 21.2.15 │ 21.2.15 │
│ @angular/router │ 21.2.15 │ 21.2.15 │
│ rxjs │ 7.8.2 │ 7.8.2 │
│ typescript │ 5.9.3 │ 5.9.3 │
│ vitest │ 4.1.7 │ 4.1.7 │
└───────────────────────────┴───────────────────┴───────────────────┘
Anything else relevant?
No response
Command
update
Is this a regression?
The previous version in which this bug was not present was
No response
Description
I am trying to upgrade our Angular 21 app to Angular 22. But the process fails pretty much immediately with an unhelpful error message that does not point to any particular reason and I don't know how to investigate further.
Minimal Reproduction
Run the following command in this repo: https://github.com/mm-jhn/ng22-repro
ng update @angular/core@22 @angular/cli@22(the first step from https://angular.dev/update-guide?v=21.0-22.0&l=2)
Exception or Error
Your Environment
Anything else relevant?
No response