Angular installation and project creation
After npm install, these are the following standard steps
npm install -g @angular/cli
ng new angular-tour-of-heroes
cd angular-tour-of-heroes
ng serve –open
Then make the changes as menteioned in https://angular.io/tutorial/toh-pt0
Creating a new component
Using the Angular CLI, generate a new component named heroes.
ng generate component heroes

Please make sure that, you call this inside the angular-tour-of-heroes folder