Angular is the JavaScript framework developed and maintained by Google. It is used to develop web applications. In this post, we will learn to install Angular on Windows.
Here we will learn about how to set up a local development environment in your machine. There are certain things that you need to follow before getting started with angular.
Install and Verify the Angular version
To install Angular, first, we need to install NodeJs.
You can follow the below steps one by one to get started:
- Download and Install Node.js
- By running the command execute the below command to check the node and npm version
- For node:
node -v
and - For npm:
npm -v
- For node:
- Install the Angular CLI globally on your system by running:
npm install -g @angular/cli
- When the installation is successful then check the version by executing
ng --version
orng v
Congratulation! you have successfully installed Angular on your Windows machine.
Now create your first Angular project
- Create project:
ng new projectName
- Install packages:
npm install
- Start angular application:
ng serve
orng s
- Click: http://localhost:4200
You may see your first Angular application running.
Conclusion
In this post, we learned to install Angular on a Windows machine and also learned to create the first project in angular.