Angular

Using Angular-CLI with Yarn

Recently, I have switched from npm to 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.

That’s it!

Source.

No Comments

Leave a reply

Your email address will not be published. Required fields are marked *