To install angular 17 and create new project with the help of angular cli, For this, you need to install node.js and npm in Windows 11|10, and after that, you need to install Angular CLI tool and then you can install and set up new project of Angular using ng new my-angular-app
command of Angular CLI tool on cmd or command prompt.
How to Install Angular 17 on Windows 11
Steps to install Angular 17 on your Windows 11|10 32, 64-bit system and created a new Angular project.
Step 1: Verify Node.js and npm Installation
Open the command prompt in Windows11|10 and run the following commands to check if Node.js and npm are installed correctly:
node -v npm -v
Once you have run the above command, You will see the version numbers of Node.js and npm printed in the console.
Step 2: Install Angular CLI
To install angular cli globally in Windows 11|10, simply type npm install -g @angular/cli
on command prompt and press enter:
npm install -g @angular/cli
This will install the angular cli tool and it helps to create a new Angular project in your windows.
Step 3: Verify Angular CLI Installation
To verify that the Angular CLI by running the ng --version
command on cmd or command prompt:
ng --version
Step 4: Create a New Angular Project
To create a new Angular application in window; simply use angular cli command ng new my-angular-app
on CMD:
cd desktop ng new my-angular-app
Replace my-angular-app
with the desired name of your Angular application.
Now, navigate to the created Angular project directory by cd my-angular-app
command on cmd:
cd my-angular-app
Step 5: Serve the Angular application
To start angular application on windows, simply run ng serve
on cmd or command prompt to start server:
ng serve
This will start a development server, and you can access your Angular app at http://localhost:4200/
in your web browser.
Conclusion
That’s it! You have successfully installed and setup Angular 17 on your Windows 11|10 11 64-bit system and created a new Angular project.