Let's look at the following steps to create an Angular project:
- To install Angular-CLI, simply run the following command:
npm install -g @angular/cli
- This may take several minutes to install Angular-CLI locally and make it ready and available to use in your project. Wait until the command prompt is ready, before proceeding to generate a new Angular project using Angular-CLI.
- To create a new Angular application, simply type ng new, followed by the name of your new application--in this case, I am using my-angular-project:
ng new my-angular-project
- This will create a new project folder called my-angular-project and preinstall everything that we need to run our new Angular application locally.