DEV Community

Aleksandr Ippatev
Aleksandr Ippatev

Posted on

How can I set yarn as the default packageManager for Angular CLI?

You hav to update package manager from npm to yarn.

ng config --global cli.packageManager yarn
Enter fullscreen mode Exit fullscreen mode

if you need back yarn to npm then

ng config --global cli.packageManager npm
Enter fullscreen mode Exit fullscreen mode

Discussion (0)