View All
View All
View All
View All
View All
View All
View All
View All
View All
View All
View All
View All

How to Install Angular CLI in Windows 10

By Pavan Vadapalli

Updated on Jun 02, 2025 | 12 min read | 5.09K+ views

Share:

Did you know? Angular powers over 1.2 million live websites globally, making up around 0.3% of all sites using known JavaScript libraries? This widespread adoption highlights Angular's relevance, and learning to install Angular CLI is your first step toward building powerful, dynamic web applications.

To install Angular CLI on Windows 10, you first need to have Node.js installed. Then, you use the Command Prompt or PowerShell to run a simple npm command. This sets up Angular’s command-line interface, allowing you to easily create and manage Angular projects. 

By following these straightforward steps and ensuring your system meets a few requirements, you can have Angular CLI up and running in just minutes.

In this guide, you’ll learn clear instructions on how to install Angular CLI in Windows 10, including checking your system requirements, installing Node.js if needed, running the installation command, and verifying your setup.

Want to sharpen your Angular skills? Advance your tech career with upGrad’s Online Software Development Courses, offering an updated curriculum on generative AI, industry-relevant projects, and hands-on case studies. Enroll now to stay ahead with the latest programming tools and languages.

What is Angular CLI? Key Features and Benefits

Angular CLI (Command Line Interface) is a powerful command-line tool designed to simplify the process of building and managing Angular applications. It provides developers with a suite of commands to efficiently create, develop, test, and deploy Angular projects, streamlining the entire workflow.

Want to sharpen your Angular skills after installing Angular CLI on Windows 10? Check out upGrad’s Software and Tech Courses designed to equip you with industry-relevant skills and knowledge.

 

Below are some of the main benefits developers get from using Angular CLI:

  • Faster Development: Angular CLI provides default configurations, code generators, and ready-made project templates that accelerate the setup and coding process, allowing developers to focus on writing features rather than boilerplate code.
  • Simplified Build Process: With just a single command, Angular CLI optimizes your build process for both development and production environments. This makes it easier to build and bundle your app efficiently, ensuring it’s ready for deployment with minimal configuration.
  • Easy Testing: Angular CLI comes pre-configured with testing tools like Karma for unit tests and Protractor for end-to-end testing. These built-in tools ensure that testing is smooth and easy to integrate, so developers can focus on writing tests without additional setup.
  • Code Consistency: Maintaining consistent code quality is critical for team-based projects. Angular CLI enforces coding standards with linting, formatting tools, and style guidelines, helping developers write clean and maintainable code that adheres to best practices.
  • Customizability: Angular CLI is highly customizable, allowing developers to add or remove features, modify configurations, and create custom scripts that suit specific project needs. Whether you need additional features or specific build configurations, Angular CLI offers flexibility to customize your workflow.
  • Active Community and Updates: Angular CLI benefits from regular updates and strong community support. Developers can rely on the latest Angular features and improvements, ensuring their projects stay current with industry standards.

Now that you know the benefits, let’s walk through 5 simple steps to install Angular CLI on Windows 10.

5 Simple Steps to Install Angular CLI on Windows 10

Installing Angular CLI on your Windows 10 machine is quick and easy. In the following steps, you’ll learn exactly what you need to do, from checking system requirements to confirming that Angular CLI is successfully installed. Let’s take a closer look:

Step 1: Check System Requirements for Angular CLI

Before you start installing Angular CLI, ensure that your system meets the following requirements:

  • Node.js: Version 10 or higher.
  • NPM: Typically included with Node.js.

Step 2: Download and Install Node.js on Windows 10

Visit the official website for Node.js installation

Coverage of AWS, Microsoft Azure and GCP services

Certification8 Months

Job-Linked Program

Bootcamp36 Weeks
  • Select Windows Installer to download the appropriate MSI file for your system.
  • Once downloaded, double-click the installer to run it.
  • Follow the installation wizard’s instructions. You’ll be asked to accept the license agreement and choose the installation location. You can either use the default settings or customize them.
  • After completing the installation, you’ll be all set to move on to the next step.

Curious to know how to build dynamic, responsive web applications? Begin with upGrad's JavaScript Basics from Scratch Course. You'll lay a strong base in key concepts like variables, data types and functions. Once you're comfortable with JavaScript, step into Angular using Angular CLI and elevate your web development skills with upGrad!

Also Read: How to Install Node.js and NPM on Windows? [Step-by-Step]

Step 3: Verify Node.js Installation

Once the installation is complete, verify that Node.js is successfully installed on your Windows 10 before downloading Angular CLI. Here’s how you can verify your installation – 
Open the command prompt or Powershell on your Windows system.

  • To check if Node.js is installed, type the following command in the command prompt:
node -v
  • If the installation is successful, the command prompt should display the version of the node.js. 

Install Angular CLI and  level up your Angular Development skills with upGrad’s Generative AI Mastery Certificate for Software Development. This program is designed to help you integrate generative AI into your projects, making your applications smarter and more efficient. With hands-on projects and a Microsoft certification, you'll gain advanced skills to stay ahead in the AI-driven future of software development.

Step 4: Install Angular CLI via Command Prompt/PowerShell

Now that Node.js is installed, it's time to install Angular CLI. Follow these steps:
Open the Command Prompt or Powershell.

  • Type the following command to install Angular CLI:
npm install -g @angular/cli
  • Press Enter to execute the command.
  • npm will download and install the necessary Angular CLI packages. This may take several minutes, depending on your internet speed.
  • Once the installation is complete, you can verify that your system has installed Angular CLI correctly.

Enhance your front-end development skills by enrolling in the upGrad’s “React.js For Beginners” course. This beginner-friendly program provides a comprehensive introduction to building dynamic user interfaces and reusable components, skills that easily carry over to frameworks like Angular. Begin your journey towards becoming a proficient web developer today.

Step 5: Verify Angular CLI Installation
After the installation is complete, it’s important to verify that Angular CLI was installed correctly
 

ng version
  • Press Enter to execute the command.
  • If Angular CLI has been installed correctly, the Command Prompt or PowerShell should display the Angular CLI version numbers.

By following these steps, you’ll have Angular CLI up and running on your Windows 10 machine, ready to start building Angular applications.

Curious to enhance your tech skills? Join upGrad’s Full Stack Development Course by IIITB, where you’ll learn from top industry experts and gain the essential skills to succeed in the field of full stack development. Enroll now and take the first step toward a rewarding career in tech!

Also Read: How to Install Node.js and NPM on Windows? [Step-by-Step]

Let’s now look at how you can keep your Angular CLI up-to-date. Updating to the latest version ensures you have access to the newest features, bug fixes, and performance improvements

How to Update Angular CLI to the Latest Version?

Keeping Angular CLI up to date is essential to leverage the latest features, bug fixes, and performance improvements. Here’s a step-by-step process to updating Angular CLI, along with explanations for each command:

1. Update Angular CLI and Angular Core
To update Angular CLI to the latest version, you can use the following command:

ng update @angular/core @angular/cli

Code Explanation:

  • ng update is the Angular CLI command used to update packages in your project.
  • @angular/core refers to the core Angular framework, which includes essential libraries for Angular applications.
  • @angular/cli updates the CLI itself to the latest version.
  • Running this command will check for any available updates for Angular Core and Angular CLI, and it will automatically upgrade them.

2. Update Angular CLI Using npx
Alternatively, you can use npx, which comes with Node.js, to update Angular CLI without installing it globally. This is especially useful if you prefer not to install Angular CLI globally.

npx @angular/cli update @angular/core @angular/cli

Code Explanation:

  • npx allows you to run commands from packages that aren’t installed globally on your system.
  • This command functions similarly to the previous one but runs the update command for Angular CLI directly from the npx package, without needing a global installation of Angular CLI.
  • This is particularly useful if you’re using a project-specific version of Angular CLI.

3. Update Angular Material (if used)
If your project uses Angular Material, you should also update it to the latest version to ensure compatibility with the latest Angular and Angular CLI versions. To do so, run the following command:

ng update @angular/material

Code Explanation:

  • @angular/material refers to the Angular Material library, which provides UI components based on Google's Material Design.
  • ng update will automatically check for updates and ensure that your Angular Material version is compatible with the updated version of Angular Core and CLI.
  • Running this command ensures you get the latest features and bug fixes related to Angular Material in your project.

Updating Angular CLI ensures that you have access to the latest features, performance improvements, and security fixes. Regular updates also help resolve any bugs or vulnerabilities in older versions, while maintaining compatibility with other tools and libraries in the Angular ecosystem, allowing your projects to stay current and efficient.

 

Ready to advance your Angular Development skills with AI? Enroll in the upGrad’s Generative AI Foundations Certificate Program to gain expertise in 15 top AI tools, including Microsoft Copilot, Azure AI, and GitHub. Acquire practical skills that can be applied immediately and earn a joint completion certificate from upGrad and Microsoft. Get started today!

 

Also Read: How to Install Angular in Mac in 2025? Step-by-Step Guide


If you ever need to remove Angular CLI from your Windows 10 system, the process is simple and quick. Let’s walk through the steps to completely uninstall Angular CLI from your machine.

Also Read: Creating Libraries: How to Build a Library for Angular Apps?

 

How to Uninstall Angular CLI on Windows 10?

Uninstalling Angular CLI from your Windows 10 system is a simple process. Follow these steps:

1. Open Command Prompt or PowerShell
To begin, open either Command Prompt or PowerShell on your Windows system. You can do this by searching for "Command Prompt" or "PowerShell" in the Start menu.

2. Run the Uninstall Command
In the Command Prompt or PowerShell, type the following command to uninstall Angular CLI Globally:

npm uninstall -g @angular/cli

Explanation:

  • npm uninstall: This command is used to remove a package from your system.
  • -g: This flag ensures the package is uninstalled globally (i.e., for all projects).
  • @angular/cli: This specifies that you want to uninstall the Angular CLI package.

3. Press Enter
After typing the command, press Enter to execute it. This will uninstall Angular CLI from your system.
Whether you're removing Angular CLI from your Windows 10 system for troubleshooting, upgrading, or other reasons, the commands provided will ensure a clean and complete uninstallation.

 

 

Angular CLI Installation: Common Errors and Solutions

During the installation of Angular CLI on your Windows 10 machine, you may come across a few common errors. Below, you'll find these errors along with their solutions to help you troubleshoot and get back on track quickly.

1. Error: “The term ‘ng’ is not recognized”
This error typically occurs when Angular CLI is not properly installed or not added to the system path. To resolve this:

  • Reinstall Angular CLI using the command: 
npm install -g @angular/cli
  • Ensure that the path to Angular CLI is added to your system's environment variables. You can check and update your Path by following the instructions for your operating system.

2. Error: “npm ERR! code ACCESS”
This error occurs when npm has insufficient permissions to install packages globally, To resolve this, run Command Prompt or PowerShell as an administrator.

  • Right-click the Command Prompt or PowerShell shortcut, and select Run as Administrator before executing the installation command.

 

 

3. Error: “npm ERR! network connectivity problem”
This error occurs when there is a problem with your internet connection or firewall settings.

  • Check your internet connection to ensure it's stable.
  • Verify that your firewall or proxy settings aren’t blocking npm from accessing the registry.

4. Error: “Could not find a package.json file in”
This error arises when you try to run an npm command outside of a project folder that contains the package.json file.

  • Ensure that you are in the correct directory where your Angular project is located (the folder should have a package.json file).
     

 

 

 

5. Error: “TypeError: Cannot read property ‘config’ of undefined”
This error typically occurs when there is a mismatch between the versions of Node.js and Angular CLI.

  • Update Node.js to the latest stable version by visiting Node.js download.
  • If updating Node.js doesn’t resolve the issue, try downgrading Angular CLI to a compatible version by running:
npm install -g @angular/cli@<desired_version>

 

Note: If you continue facing issues, make sure to double-check the specific error message and consult online forums like Stack Overflow or the official Angular documentation. Angular's community is very active, and you can usually find solutions to most problems.

Upskill your web development expertise with upGrad's “Advanced JavaScript for All” course. Explore advanced concepts such as prototypes, scopes, classes, modules, and asynchronous programming through 25 hours of comprehensive learning. Strengthen your JavaScript skills and advance your journey to becoming a proficient developer today!

Also Read: Web Application Architecture: Function, Components, Types & Real Life Examples

Now, let's see how to create a new Angular project with the Angular CLI.

Creating a New Angular Project with CLI

Here’s how you can create a new angular project with CLI – 

  • Create a new Angular project by running the following command:
ng new project-name

Replace “project-name” with the name of your project.

  • Answer the questions asked by the CLI during project creation. You can choose the default options or customize them as per your requirements.
  • Navigate to the project directory using the cd command:
cd project-name
  • Start the development server by running the following command:
ng serve
  • Open your browser and navigate to http://localhost:4200/ to see your application running.
  • Your new project is now ready!

Install Angular CLI and Enhance Your Skills with upGrad!

To install Angular CLI on Windows 10, first make sure Node.js and npm are installed, then simply run the command 

npm install -g @angular/cli 

 to set up Angular CLI. Angular CLI is a powerful tool that automates tasks like building, testing, and deploying Angular applications, streamlining development. It improves productivity by reducing configuration time and maintaining consistent project structures for efficient web development.

If you're looking to enhance your skills, upGrad offers specialized courses that provide comprehensive knowledge of Angular and web development. Through expert guidance, hands-on projects, and industry-relevant training, upGrad can help you grow your skills and build a solid foundation for a successful tech career.

Curious about which course best fits your goals in 2025? Contact upGrad for personalized counseling and valuable insights, or visit your nearest upGrad offline center for more details.

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://www.esparkinfo.com/software-development/technologies/angular/statistics

 

Frequently Asked Questions (FAQs)

1. How can I install Angular CLI on Windows 10 without administrative rights?

2. What should I do if Angular CLI is installed, but I’m still getting an error like "ng command not found"?

3. I’m getting errors with "node-sass" when trying to run my Angular project after installing Angular CLI. How do I fix this?

4. Can I install Angular CLI using a version manager like NVM (Node Version Manager) on Windows?

5. What should I do if I am facing issues with permissions while installing Angular CLI in a project folder?

6. Can I use Angular CLI on a version of Windows 10 that is running in a virtual machine?

7. Is there a difference between installing Angular CLI with npm and using the "ng" installer?

8. How can I verify if all dependencies are correctly installed after installing Angular CLI?

9.How do I configure Angular CLI to work with a proxy server on Windows 10?

11. How can I check if Angular CLI is compatible with my version of Node.js on Windows 10?

12. Can I use Angular CLI with a specific version of Angular for an existing project? How do I ensure compatibility?

Pavan Vadapalli

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

+91

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

View Program

Top Resources

Recommended Programs

upGrad

AWS | upGrad KnowledgeHut

AWS Certified Solutions Architect - Associate Training (SAA-C03)

69 Cloud Lab Simulations

Certification

32-Hr Training by Dustin Brimberry

upGrad

Microsoft | upGrad KnowledgeHut

Microsoft Azure Data Engineering Certification

Access Digital Learning Library

Certification

45 Hrs Live Expert-Led Training

upGrad

upGrad KnowledgeHut

Professional Certificate Program in UI/UX Design & Design Thinking

#1 Course for UI/UX Designers

Bootcamp

3 Months