Angular CLI with yarn
I. Global configuration
ng config -g cli.packageManager yarn
II. For a particular project
ng config cli.packageManager yarn
Or you can add it directly in angular.json like this :
"cli": {
"packageManager": "yarn"
}
You can set global configuration using
ng config -g cli.packageManager yarn
If you want to set the package manager for a particular project then go to the root directory of the project and use the following command
ng config cli.packageManager yarn
ng config -g cli.packageManager yarn