yarn angular cli code example Example 1: yarn \angular cli yarn global add @angular/cli Example 2: ng cli use yarn ng config -g cli.packageManager yarn