This article lists the requirements for generating and running Angular applications in your development environment, and also running Angular applications in your production environment.
For Angular Applications Development, your development environment should include the following:
Get Node.js from nodejs.org (download the LTS version). After the installation of Node.js, to check your version run the following command in a terminal/console window:
Version has to be v16.13.1 (LTS) or higher
For the environment setup, npm packages will be installed (automatically) using the npm client command line interface, so you must have an npm package manager. Node.js includes it by default. So, after installing Node.js, check that you have the npm client installed, by running the following command in a terminal/console window (npm version should be 7 or higher):
To install the Angular CLI using npm: open a terminal/console window and enter the following command:
npm install -g @angular/cli
Note: Node.js is only required for the development. It is not required for production.
See also How to execute an app using Angular Generator.
The generated Angular frontend just requires an HTTP server. It can be an IIS, Apache, or even an AWS S3 bucket or any object storage service with HTTP(s) access.
To perform best, Angular applications take the most of modern browsers.
They require browsers that support the es6-module, basically
- Browsers on Chromium engine, like
- Google Chrome
- Microsoft Edge
Note: Internet explorer is not supported.
Q: Why is Node.js required for Development?
A: To fasten development cycles. The server updates the pages automatically, without the need for extra compilation times.
Look at the npm and ng commands of this page which explain more details.