Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I configure Yarn as the default package manager for Angular CLI?

How do I configure Angular CLI to use Yarn as the default package manager?

like image 748
Rafael Fraga Walter Avatar asked Mar 06 '18 13:03

Rafael Fraga Walter


2 Answers

As of Angular CLI 6.x the correct command is

ng config --global cli.packageManager yarn
like image 134
Denys Vuika Avatar answered Nov 09 '22 20:11

Denys Vuika


ng set --global packageManager=yarn
like image 1
standby954 Avatar answered Nov 09 '22 21:11

standby954