In this blog, we will install Angular CLI and setup a new Angular 10 project.
There are following steps :-
Step-1
Here, We should check some prerequisites before setup angular project.
System requirements
Windows 10 OS
4 GB RAM
10 GB free space
Step -2
Before install angular cli we will need nodejs and npm.
What is Nodejs and why we need for angular development ?
Node.js is an open-source, cross-platform JavaScript run-time environment that executes JavaScript code outside of a browser. we use javascript to develop angular web application.
Download Node Js from below url and run setup
(https://nodejs.org/en/download/?utm_source=blog)
Test Installation
Open command line interface then run below command
node -v
Step -3
What is npm and why we need for angular development ?
Npm stands for node package manager, it is a dependency management tool for javascript applications. This tool will help to install the libraries and other tools to support angular development.
Step -4 Install Angular CLI 10
Open command line interface then run below command
npm install -g @angular/cli
Step -5 — Setup a new angualr 10 project
Open command line interface then run below command
ng new angular-10project
Here, we will see some prompted at the time of install if you want install angualr routing then Say y and pick stylesheet format which you want.
This will install our project with routing and set css as the stylesheet format for components.
Next got to project folder then run following commands.
cd angular-10project
ng serve
Comments
Post a Comment