Tell ng
to use yarn
all the times:
$ ng set --global packageManager=yarn
Create a new angular4 project:
$ ng new myapp --ng4 --routing --style=scss
By configuring yarn as THE package manager in advance, we don't have to deactivate the install phase and do it manually:
$ ng new myapp --ng4 --routing --skip-install
$ cd myapp
$ yarn
By default, ng will create a git repository and a first commit.