https://angular.io/guide/quickstart
Tour of Heroes https://angular.io/tutorial
#make sure you have latest version of node and npm
node -v
npm -v
#clean up previous angular-cli installations
npm uninstall -g angular-cli
npm uninstall --save-dev angular-cli
npm uninstall -g @angular/cli
npm cache clean
#install latest angular-cli
npm install -g @angular/cli@latest
ng new my-app
cd my-app
ng serve --open
Tour of Heroes https://angular.io/tutorial