How to install Angular, Angular CLI and setup project
How to install and use the Angular CLI
In this post, you will be learning how to install the Angular CLI. Before installing the Angular CLI, you'll need to install Node.js.
If you're using a Windows or Mac download it here. And for the amazing Linux guys, here's the best way to install Node.js.
When you install the NodeJs, NPM (Node Package Manager) is also installed.
Now, lets check the Node is installed or not by check the version with the following command:
Step 1: Installing Angular CLI (Globally) using the npm package manager with the following command:
Step 2: If you have already angular cli installed, then you can update to latest version with the following command:
Step 3: Create an Angular project / application with the CLI with following command:
once project is created successfully, change the path as follows:
Step 4: Start the Angular application with the CLI as follows:
OR
Open a terminal or command prompt and run this command to see the basic options and available commands for the Angular CLI.
That's all, your project is ready.
Thanks for reading.