This article shows how to install Angular and what are the prerequisites to create your first Angular project.
Install Node.js and NPM
Ensure that you have installed Node.js and an NPM package manager.
Angular requires Node.js to run applications.
Angular, the 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. Note that a NPM client is installed with Node.js by default. So you don’t need to install NPM separately.
Refer this article How to Install Node.js and NPM in Windows to see how to install Node.js
Installing Angular CLI
Angular CLI is a command line interface for Angular which is a convenient tool to create and manage projects. Using CLI you can create an Angular project that follows the best practices of Angular and gives you a project structure as suggested by Angular.
Angular CLI also performs a variety of ongoing development tasks such as testing, bundling, and deployment.
To install the Angular CLI globally open the command prompt and run the following command.
npm install -g @angular/cli
To verify that installation is done correctly you can run the following command.
ng –version
It should show the installed version of packages.
With that your Angular environment setup is complete and you can start creating your first Angular app.
That's all for this topic How to Setup Angular. If you have any doubt or any suggestions to make please drop a comment. Thanks!
>>>Return to Angular Tutorial Page
Related Topics
You may also like-
No comments:
Post a Comment