How to Install Angular in Mac in 2025? Step-by-Step Guide
Updated on Jun 02, 2025 | 16 min read | 24.52K+ views
Share:
For working professionals
For fresh graduates
More
Updated on Jun 02, 2025 | 16 min read | 24.52K+ views
Share:
Table of Contents
Did you know that India is the second-largest market for Angular globally, with 4,227 companies using Angular as their primary front-end framework? This growing adoption highlights Angular's scalability and efficiency in building dynamic, enterprise-level applications, making it a crucial tool for developers for web development projects. |
Installing Angular in Mac in 2025 requires configuring the system with the necessary dependencies, including Node.js, npm, and the Angular CLI. Start by ensuring Node.js and npm are installed.
With the Angular CLI in place, you can create, manage, and build applications efficiently. This process enables you to fully use the capabilities of Angular for dynamic web development.
In this blog, we will understand how to install Angular in mac with a step-by-step process.
Want to strengthen your computational skills for tasks in Angular? upGrad’s Online Software Development Courses can equip you with tools and strategies to stay ahead. Enroll today!
Angular is an open-source, front-end framework for building dynamic, single-page web applications. It is widely recognized for its powerful features that allow the creation of responsive, scalable, and maintainable user interfaces.
Its component-based architecture enables the development of modular applications by composing reusable components, promoting efficiency and maintainability. Angular also integrates seamlessly with tools like Docker for containerization and can be deployed across Linux environments, making it ideal for large-scale, enterprise-level applications.
If you want to learn relevant computational skills to make effective use of Angular, the following courses from upGrad can help you succeed.
With Angular's extensive set of tools, developers can quickly build performance-driven web apps.
Before setting up Angular on your Mac, ensure that both your hardware and software meet the necessary specifications. Whether you're a beginner or an experienced developer, these requirements will ensure you have a smooth setup for your Angular development environment.
Here are the system requirements to install Angular on macOS:
1. Hardware Requirements
For Angular to run efficiently, your Mac must meet the following hardware specifications:
2. Software Requirements
Angular requires a few essential software tools to run properly. Make sure to install or verify the versions of the following:
3. Additional Tools and Libraries
For an efficient and enhanced development experience, you'll need a few additional tools and libraries:
Also Read: Web Application Architecture: Function, Components, Types & Real Life Examples
Installing Angular on macOS is a straightforward process, but to ensure a smooth setup, it’s essential to follow the steps methodically. Angular relies on several tools, particularly Node.js, to function efficiently.
Before diving into the Angular installation process, it’s essential to understand that Angular requires Node.js and npm (Node Package Manager) for managing dependencies and running development tasks. Node.js provides a server-side runtime environment for JavaScript, and npm serves as the tool for handling packages necessary for web development.
To run Angular applications efficiently, you need to ensure the following software is installed:
Let’s walk through the process of installing Angular on macOS, covering everything from installing Node.js to setting up the Angular CLI.
Node.js is an essential tool for running Angular applications. Here's how to install it on macOS:
The macOS version you'll need is:
Alternatively, you can also download the source code or binaries, but using the installer is the easiest method for beginners.
(Download the Node.js source code or a pre-built installer for your platform, and start developing today). We get the site as follows:
Download the LTS version of the software with the latest features.
This gives us three versions for different operating systems:
Also Read: How to Run the Angular Project [Step-By-Step Explanation]
To install Node.js, follow these steps:
Follow the Installer Steps:
Click Continue to move to the next page.
Read and accept the License Terms by clicking Agree.
Click Continue again to proceed to the installation.
Click on continue to continue to the next page with License Terms and Conditions.
You will be asked to accept the license, please do so by clicking on Agree, after reading the terms and conditions.
Click on Continue to move to the next page.
Once you have clicked on continue, you will get the install now page:
Click on Install, and enter the login credentials, the username and password, and then click on Install Software:
Once successfully installed, Node.js shows the following summary of the installation:
Click on Close to close the wizard.
Set the /usr/local/bin in your $PATH so that you can access the node and npm executable files. To verify the same open the terminal and type:
Echo $PATH
After installing Node.js, it’s essential to verify that it’s properly installed and accessible. Follow these steps:
node -v
This should return the version number of Node.js installed on your Mac.
npm -v
This should return the version number of npm, confirming its installation.
The Angular CLI (Command-Line Interface) is a tool that simplifies development tasks, such as creating, testing, and building Angular applications. Here’s how to install it:
npm install -g @angular/cli
This command installs the Angular CLI globally, meaning you can use it from anywhere on your system.
ng --version
Step 5: Create a New Angular Project
Now that you have Node.js and Angular CLI installed, you can create a new Angular project.
ng new my-angular-app
Navigate to Project Folder: Once the project is created, change into your new project directory
cd my-angular-app
Step 6: Serve the Application Locally
Now that the project is created, it's time to run the Angular development server to view the app locally.
ng serve --open
If you run into issues during installation or setup, consider the following tips:
sudo npm install -g @angular/cli
npm cache clean --force
Must Read: Life Cycle of Angular Components: Various Methods Explained
Let’s explore the process of installing Node.js.
After successfully installing Node.js on your macOS system, it's crucial to verify that both Node.js and npm are properly installed. These tools are essential for running Angular and other JavaScript-based applications, like React.js. Verifying the installation ensures that you can start managing dependencies and executing JavaScript code locally.
node -v
Output
v14.15.0
Output Explanation:
The node -v command prints the installed version of Node.js. In this case, the version v14.15.0 indicates that Node.js is correctly installed. This version ensures compatibility with various web development tools, including Angular and React.js.
Check npm Version: To verify the installation of npm (which is bundled with Node.js), type the following command:
npm -v
Output:
6.4.1
Output Explanation:
The npm -v command displays the version of npm installed. In this example, the output 6.4.1 confirms that npm is set up correctly.
npm is used to install dependencies for Angular, React.js, and other libraries required for web applications. With npm, you can manage libraries like HTML, HTTP requests, and other JavaScript tools in your project.
Let’s understand the process of installing Angular CLI on macOS.
Angular CLI has a wide range of commands for Angular Applications. It helps us in managing, testing, and building Angular applications.
Once Node.js is installed in our system, we can use npm to install software globally on our system. Use –g option in the npm command to install the Angular CLI tool globally. Once done so it will be accessible to all users and applications on the mac OS system.
To install Angular CLI with the Node.js npm tool, use the following command:
$ sudo npm install -g @angular/cli
This command will install the latest Angular CLI version available at Angular site on your macOS system.
If you require other than the latest version of Angular, then use the following command in your mac OS:
For Angular 6:
$ npm install -g @angular/cli@6#Angular 6
For Angular 7:
$ npm install -g @angular/cli@7 #Angular 7
For Angular 8:
$ npm install -g @angular/cli@8 #Angular 8
For Angular 9:
$ npm install -g @angular/cli@9 #Angular 9
Also Read: Angular JS vs Angular: Key Differences, Which Framework is Better, Real-world Examples, and More
Let’s see how you can test the installation of Angular CLI on macOS.
After successfully installing Angular CLI on your macOS system, it’s essential to verify that the installation was completed correctly. The Angular CLI provides a command-line interface (ng) to manage various tasks such as creating projects, generating components, and running builds.
Testing the installation involves checking the version of the Angular CLI to confirm that it is appropriately set up and ready for use. This verification ensures that your environment is properly configured, enabling you to proceed with developing Angular applications.
Type the following command to check the version of Angular CLI:
$ ng --version
Or
$ ng version
And we should get the following output:
This completes your Angular installation on Mac. Now let us make a “Hello World” Application in Angular. Following section describes how to make a basic application in Angular.
Let’s understand how you can create new angular application.
Creating a new Angular application involves a few straightforward steps. By using the Angular CLI (Command Line Interface), you can generate a fully functional Angular project in just a few minutes.
Below, we will walk through the process of setting up your first Angular application from scratch, including creating a basic Hello-World app.
To create the Angular app, follow these steps:
Open the Terminal: Navigate to the folder you just created and open the Terminal.
Run the Angular CLI Command: To create your application, run the following command:
ng new hello-world
Alternatively, you can use:
ng create hello-world
Both commands will create a new Angular project named hello-world.
Answer Prompts: During the setup, you will be asked a couple of questions:
Q. Would you like to add Angular Routing?
A. Type Yes and press Enter.
Q. Which stylesheet format would you like to choose?
A. Move your cursor to select CSS and press Enter.
The Angular CLI will then proceed to install the necessary dependencies and set up the project files.
Once the Angular application is created successfully, you can serve the application to view it in your browser:
cd hello-world
ng serve
This will start the server and automatically open the application in your default browser. The development server will continuously monitor for changes, automatically refreshing the browser each time you modify and save your Angular files.
ng serve --port 4201
This will start the Angular application on port 4201. You can then navigate to http://localhost:4201 to view the application.
Once your Angular application is up and running, the browser should display the default Angular page, something similar to:
Check the Output
Typically, the browser looks something like this:
Must Read: Creating Libraries: How to Build a Library for Angular Apps?
Uninstalling Angular from macOS involves a series of steps to completely remove the Angular CLI, TypeScript, and any associated Angular projects. This process also includes cleaning up the npm cache and potentially uninstalling Node.js and npm, which are often explicitly installed for Angular development. Following these steps ensures that your system is free from any Angular-related components.
Here’s a step-by-step analysis for uninstalling Angular from your MacOS:
Step 1: Uninstall Angular CLI
npm uninstall -g @Angular/cli
This will uninstall the Angular CLI globally. It will also remove any globally installed Angular packages, such as @Angular/core and @Angular/compiler.
Step 2: Remove typeScript if installed
npm uninstall -g typescript
Step 3: Delete Angular projects
You will have to delete the projects manually. Navigate to the directories and manually delete them.
cd ~/path/to/your/Angular/project_name
Step 4: Remove npn cache
npm cache clean --force
Step 5: Verify your uninstallation
ng --version
Step 6: Delete the files with configuration settings for Angular.
Step 7: Uninstall NodeJS and npm
If you had installed NodeJS with the sole purpose to run Angular consider uninstalling it.
npm uninstall -g node.
sudo rm -rf /usr/local/lib/node
Also read: 28 Angular Projects in 2025: Beginner to Advanced Ideas + Source Code
Now, let’s explore how you can use Angular for your projects.
Angular is a front-end framework built with TypeScript that helps developers create scalable and maintainable web applications. It uses components to encapsulate functionality and services for handling business logic and data.
With dependency injection, routing, and two-way data binding, Angular simplifies the development of complex applications. The Angular CLI streamlines the development workflow, making tasks like creating components, services, and managing routes more efficient.
Below are the key steps to effectively use Angular in your projects.
Key Steps to Use Angular:
Advanced Angular Features:
Also read: Top Interesting Angular Projects in Github [For Beginners & Experienced in 2024]
Installing Angular in Mac in 2025 necessitates configuring Node.js, npm, and the Angular CLI with the correct versions. After installation, validate the setup with' ng-- version' to ensure proper CLI functionality. Use Angular CLI commands to generate modular components and maintain dependency integrity by managing packages through npm.
Enhance your Angular skills and accelerate your career growth with these additional courses from upGrad, designed to further elevate your expertise in related technologies.
Curious which courses can help you excel in Angular functions for enterprise applications? Contact upGrad for personalized counseling and valuable insights. For more details, you can also visit your nearest upGrad offline center.
Boost your career with our popular Software Engineering courses, offering hands-on training and expert guidance to turn you into a skilled software developer.
Master in-demand Software Development skills like coding, system design, DevOps, and agile methodologies to excel in today’s competitive tech industry.
Stay informed with our widely-read Software Development articles, covering everything from coding techniques to the latest advancements in software engineering.
References :
https://6sense.com/tech/front-end-framework/angular-market-share
900 articles published
Director of Engineering @ upGrad. Motivated to leverage technology to solve problems. Seasoned leader for startups and fast moving orgs. Working on solving problems of scale and long term technology s...
Get Free Consultation
By submitting, I accept the T&C and
Privacy Policy
India’s #1 Tech University
Executive PG Certification in AI-Powered Full Stack Development
77%
seats filled
Top Resources