How to Install Angular CLI in Windows 10

By Pavan Vadapalli

Updated on Sep 10, 2025 | 8 min read | 5.94K+ views

Share:

Did you know? Angular runs over 1.2 million websites worldwide. Learning to install Angular CLI is the first step to creating fast, dynamic web apps.

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:

Software Development Courses to upskill

Explore Software Development Courses for Career Progression

Coverage of AWS, Microsoft Azure and GCP services

Certification8 Months

Job-Linked Program

Bootcamp36 Weeks

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

  • 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.

Subscribe to upGrad's Newsletter

Join thousands of learners who receive useful tips

Promise we won't spam!

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

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?

If you don't have administrative rights on your Windows 10 machine, you can still install Angular CLI locally. First, ensure that Node.js and npm are installed without requiring administrator permissions. Then, you can install Angular CLI locally by running the command npm install @angular/cli within your project directory. Using the local installation, you can run commands like npx ng serve or npx ng new without needing administrative privileges.

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

This typically happens when the global npm packages folder isn’t added to your PATH. To resolve this, check the npm global installation path by running npm config get prefix. Make sure the directory shown is included in your system’s PATH environment variable. If it isn’t, you can manually add it or reinstall Angular CLI with the -g flag to ensure it’s properly linked to your system’s PATH.

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

The node-sass library sometimes has compatibility issues with certain versions of Node.js and Angular. If you see errors related to node-sass, try updating the library by running npm rebuild node-sass. Alternatively, you could switch to sass (a more modern and actively maintained package) by running npm install sass and modifying your Angular project configuration to use sass instead of node-sass.

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

Yes, you can use NVM for managing multiple versions of Node.js and Angular CLI. First, install NVM for Windows, then use it to install the version of Node.js you need by running nvm install <version> and nvm use <version>. After setting the desired Node.js version, you can proceed with the global installation of Angular CLI using npm install -g @angular/cli. This method is particularly useful for switching between different versions of Node.js for various projects.

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

When facing permission issues while installing Angular CLI in a project folder, try the following steps:

  1. Ensure you have full control over the directory you’re working in.
  2. Run the command prompt as an administrator to avoid permission restrictions.
  3. Alternatively, install Angular CLI globally and then use the npx ng command to avoid running into permission issues for local project installations.

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

Yes, Angular CLI can be used on Windows 10 running inside a virtual machine (VM) as long as the VM has internet access and sufficient resources (like Node.js, npm, and adequate memory). Installing Angular CLI in the VM follows the same steps as on a native Windows 10 system, and the performance will depend on the VM’s allocated resources.

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

There’s no significant difference. The primary method to install Angular CLI is via npm, using the command npm install -g @angular/cli. However, Angular’s official documentation mentions an alternative method using the ng installer, which can sometimes provide an easier installation flow for new developers. Both methods result in the same installation of Angular CLI, but using npm is the more common and standard practice.

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

To verify that all dependencies are correctly installed after setting up Angular CLI, navigate to your project folder and run the command npm install to ensure all project dependencies are installed. Additionally, running ng version will confirm if Angular CLI and the necessary Node.js version are properly configured. If any dependency is missing, you may see warnings or errors which you can address by installing the required packages.

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

If you are behind a corporate proxy or firewall, you might need to configure Angular CLI to work with it. To do so, you can set npm’s proxy configuration by running the following command

npm config set proxy http://<proxy-server>:<port>
npm config set https-proxy http://<proxy-server>:<port>

Additionally, ensure that Angular CLI’s commands can access the internet through the proxy by setting the environment variables in your system settings. You can then proceed with Angular CLI commands like usual.

-serve

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

To check the compatibility of Angular CLI with your version of Node.js, refer to the official Angular documentation, which provides compatibility matrices for Angular versions and Node.js versions. You can also check Angular CLI's release notes, which typically mention the minimum required Node.js version for each release. To check your Node.js version, run node -v in your terminal. If your Node.js version is too old, you can update it by downloading the latest LTS version from nodejs.org.

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

Yes, you can use Angular CLI with a specific version of Angular for an existing project. If you have a project that requires a specific version of Angular, ensure that your Angular CLI version is compatible with it. You can install a specific version of Angular CLI globally using npm install -g @angular/cli@<version> and ensure that the project’s package.json has the correct Angular dependencies. Run ng update to verify and update the project's dependencies to match the desired Angular version. This will help maintain compatibility and avoid potential version mismatches.

13. How do I completely uninstall Angular CLI from my Windows 10 system?

To uninstall Angular CLI globally, run the command npm uninstall -g @angular/cli. Then clear the npm cache with npm cache clean --force. You can also check your PATH environment to make sure there are no leftover ng command references.

14. How can I install a specific version of Angular CLI on Windows 10?

To install a specific version, use the command npm install -g @angular/cli@<version>. Replace <version> with the version number you want. This is useful when working on older projects that need a compatible CLI version.

15. Why is my Angular CLI installation taking so long on Windows 10?

Slow installation can happen due to a weak internet connection or npm registry issues. You can try switching to the npm mirror by running npm config set registry https://registry.npmjs.org/ or use a faster internet connection to speed up the process.

16. Can I install Angular CLI without installing Node.js first?

No, Angular CLI requires Node.js and npm to run. You must first download and install Node.js from the official website. Once installed, npm will come bundled with it, allowing you to install Angular CLI.

17. What should I do if Angular CLI commands run very slowly on Windows 10?

Slow CLI performance can be due to antivirus scanning, low system resources, or outdated npm packages. Try excluding your project folder from antivirus scans, close unnecessary programs, and update npm with npm install -g npm.

18. How do I upgrade Angular CLI to the latest version on Windows 10?

To upgrade, first uninstall the old version with npm uninstall -g @angular/cli and then install the latest one with npm install -g @angular/cli. You can check the installed version by running ng version.

19. Can I install Angular CLI for just one project instead of globally?

Yes, navigate to your project folder and run npm install @angular/cli. This will install it locally, and you can run commands using npx ng <command> without affecting other projects.

20. Why am I getting an “EACCES” or permission denied error when installing Angular CLI?

This error usually happens when you don’t have write permissions to the npm global folder. You can fix it by changing npm’s default directory to a user-owned folder or by installing Angular CLI locally within the project.

21. How can I check which version of Angular CLI I have installed?

Simply open your terminal or command prompt and run ng version. This will show the CLI version along with details of the Angular framework and Node.js version installed.

Pavan Vadapalli

900 articles published

Pavan Vadapalli is the Director of Engineering , bringing over 18 years of experience in software engineering, technology leadership, and startup innovation. Holding a B.Tech and an MBA from the India...

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

upGrad

AI-Driven Full-Stack Development

Job-Linked Program

Bootcamp

36 Weeks

upGrad

upGrad KnowledgeHut

Professional Certificate Program in UI/UX Design & Design Thinking

#1 Course for UI/UX Designers

Bootcamp

3 Months

IIIT Bangalore logo
new course

Executive PG Certification

9.5 Months