Posted by Anuraj on Sunday, January 28, 2018 Reading time :1 minute
Angular CLI depends on the package manager when running
ng new, the command used to create a new project.
To use Yarn with Angular CLI, first you need to set the package manager as Yarn. You can do this by running following command.
You can revert it back to npm by modifying the command and use npm instead of Yarn. -
ng set --global packageManager=npm.
Once you set to yarn, once you create angular project, you will be able to see Angular CLI is using Yarn instead of Npm.
Happy Programming :)
What do you think? I would like to hear your thoughts, suggestions, and questions in the comments section below.