Before you begin, make sure your development environment includes
Node.js® and an npm package managerNode.js
https://nodejs.org/en/
node -v
npm package manager
install npm
angular/cli :To install the CLI using
npm, open a terminal/console window and enter the following command:npm install -g @angular/cli
First App : Create a workspace and initial application
ng new my-app
Run the application : Launch the server by using the CLI command
ng serve, with the --open option.cd my-app
ng serve --open
Create a workspace and initial application
ng new my-app