--force flag on update does not work with Yarn 2+ #22249
Labels
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
Running ng update with the
--force
argument does not work if using Yarn 2 or greater. Many Yarn command line arguments changed after Yarn 1 in ways that were not backwards compatible.🔬 Minimal Reproduction
In a project that is configured to use Yarn 3 as the package manager, run the following:
npx @angular/cli@^12 update --force @angular/core@^12 @angular/cli@^12
🔥 Exception or Error
🌍 Your Environment
The text was updated successfully, but these errors were encountered: