[Yarn2] Installing temporary version of @angular/cli
fails
#19209
Labels
2022Q3 Fixit
Candidates for the Q3 2022 fix-it
area: @angular/cli
freq1: low
Only reported by a handful of users who observe it rarely
ng update DX
severity3: broken
type: bug/fix
yarn 2+
Milestone
🐞 Bug report
Command (mark with an
x
)Is this a regression?
No
Description
When using Yarn 2 these flags are not supported:
angular-cli/packages/angular/cli/utilities/install-package.ts
Lines 168 to 174 in b7890b6
This results in an error installing the
@angular/cli
when the locally installed version is not the latest.A workaround is to run
yarn add @angular/cli@latest
to manually update the cli version prior to invokingng update
Also see: #16980
🔬 Minimal Reproduction
🔥 Exception or Error
🌍 Your Environment
The text was updated successfully, but these errors were encountered: