Recently, I have switched from
yarn, however, it seems that my Angular CLI still uses
npm. To configure Angular CLI to use yarn globally, just run this:
For Angular 6 and above:
ng config -g cli.packageManager yarn
For below Angular 6:
ng set --global packageManager=yarn
This is assuming you already installed the Angular CLI.