On February 7th, 2020, a new version of Angular is released which is Angular 11. A lot of new features and performance improvements are introduced with this release. Here in this article, we will discuss some features in Angular 11 and the steps to install Angular 11 on Windows 10.
I am not entering the explanation of new features in Angular 11 but listed out some of them below.
- Faster Builds.
- Angular ESLint Updates.
- Internet Explorer Updates.
- Webpack 5 Support.
- Improved Logging and Reporting.
- Updated Language Service Preview.
- Updated Hot Module Replacement (HMR) Support.
- Automatic Font Inlining.
- Component Test Harnesses
Install Angular 11 on Windows 10
If you are a visual learner, please follow steps in the following video.
For others, please follow the below steps to install Angular 11 on Windows 10.
1. Install Node.js
We need NPM to install Angular CLI. To install Node.js on your system and NPM will install with Node.js.
To install Node.js, go to the official Node.js website, download the latest version and install it.
After the installation, check the versions using the below commands.
node -v npm -v
This will show the installed versions of Node.js and NPM.
If you are really a beginner in this field, the guide Steps to install Node.js and NPM on Windows 10 will help you.
2. Install Angular CLI
Angular CLI helps us to create projects, generate application and library code, and perform a variety of ongoing development tasks such as testing, bundling, and deployment.
It can simply be installed using NPM. So first, open our Command Prompt / Powershell and install the Angular CLI with the below command.
npm install -g @angular/cli
This will ask you a question.
You can either agree or disagree with the question. Press y and Enter for agreeing and n and Enter if you are disagreeing. This answer won’t affect the Angular installation.
3. Creating a New Angular Application
You have successfully installed Angular CLI on our system and now you can set up a workspace for Angular projects in the system and create a new app. This can be done with the below command.
ng new awesome-project
This will ask you two questions.
1. Would you like to add Angular routing?
press y if you are preferring t to create a multi-page website. Otherwise choose n.
2. Which stylesheet format would you like to use?
Choose any stylesheet format that you are familiar with. Here I chose CSS.
4. Running Our App
Now, the app you created can be run using ng serve command.
cd awesome-project ng serve --open
This launches the server, watches our files, and rebuilds the app as we make changes to those files. The –-open (or just -o) option automatically opens our browser to the address http://localhost:4200.
So, we have discussed the steps to install Node.js on our Windows 10 system and installation on Angular 11 using NPM(Node Package Manager).