Install and Setup Angular
Before we start, lets install the angular cli with the following command
npm install -g @angular/cli
Angular CLI is a tool that can
make a new project,
compile your typescript files,
configure your typescript compiler
run your code with live preview,
build and package your project.
Note Make sure you have latest node and npm installed, at least node version 6.9.x and npm version 3.x.x . To see the versions you can run commands node -v and npm -v for node and npm versions respectively.
Warning While installation you might get the following warning
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/@angular/cli/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":...