Creating new projects with different templates Working with files and assets Building projects for production Generating code scaffolding

In this blog post, we will show you how to install Angular CLI on Ubuntu 22.04. Let’s get started!

Step 1 – Installing Node.js

Node.js is the primary requirement for running Angular applications. You can install the required Node.js using NVM command-line utility. Log in to your Ubuntu system and follow:

Step 2 – Installing Angular CLI

After installing the node.js and npm on your system, use the following commands to install the Angular CLI tool on your system. The latest version of Angular CLI will be installed on your Ubuntu Linux system. Using the -g above command will install the Angular CLI tool globally. So it will be accessible to all users and applications on the system. Angular CLI provides a command ng used for command-line operations. Let’s check the installed version of ng on your system. The angular command-line interface has been installed on your system. For the existing application, can start your work and ignore the rest article. Follow the next steps to create a new Angular application on your system.

Step 3 – Create a New Angular Application

You can use ng command to create a new angular application. Create application named hello-world using the Angular command line tool. Execute below command in terminal: This will create a directory named hello-world in your current directory, and create all required files for an angular application.

Step 4 – Serve Angular Application

Your basic Angular application is ready to serve. Switch to directory hello-world and then run your angular application using the ng serve command. By default angular application run on port 4200. You can access your system on port 4200 to open the angular application, like:


You can change the host and port for running the Angular application by providing –host and –port command line arguments. Using the host address allows the application to listen on all interfaces and is publicly accessible.


In conclusion, this article has shown you how to install the Angular CLI on Ubuntu 22.04. This tutorial also helped you to create a new angular application. Now, visit here to configure angular application behind the Apache server. If you run into any problems or have any questions, please leave a comment below and I will do my best to help you out. Thanks for reading!.

How to Install Angular CLI on Ubuntu 22 04   TecAdmin - 92How to Install Angular CLI on Ubuntu 22 04   TecAdmin - 58