Complete Introduction and its Machine Setup
We will discuss…What is Angular CLI
ANGUALR CLI Machine Setup with Very easy steps
Suggested Videos:
Difference between AngularJS and Angular?
What is ANGULAR CLI
The Angular CLI is a command-line interface tool that you use to initialize, develop, scaffold, and maintain basic Angular applications that works right out of the box. It already follows our best practices. You can use the tool directly in a command shell, or indirectly through an interactive UI such as Angular Console.
The CLI supports the full development cycle, including building, testing, bundling, and deployment.
ANGULAR CLI Machine Setup
Angular CLI and Angular apps depend on features and functionality provided by libraries that are available as npm packages.
To download and install npm packages, you must have an npm package manager and to install npm package manager, install Node.js from nodejs.org.
- npm is installed with Node.js
To check if you have Node.js installed, run this command in your terminal/console window: node -v
To confirm that you have npm installed you can run this command in your terminal/console window. : npm -v
We will use npm client command line interface, which is installed with Node.js by default.
Create ANGULAR Project using CLI
You use the Angular CLI to create basic Angular projects, generate application and library code, and perform a variety of ongoing development tasks such as testing, bundling, and deployment.
First Install the Angular CLI globally using npm.
The Angular CLI installs the necessary Angular npm packages and other dependencies. This can take a few minutes.
Open a terminal/console window and enter the following command:
npm install -g @angular/cli
ng version :will let you know which version of Angular is referenced by the current directory.
npm list –global : display all the installed component of package, ready to run.
Next: Cteate 1st Angular Project usnig CLI
No comments:
Post a Comment
Your feedback is important.
Visit www.techwebdots.in