How to Install Angular CLI in Windows 10
Updated on Jun 02, 2025 | 12 min read | 5.09K+ views
Share:
For working professionals
For fresh graduates
More
Updated on Jun 02, 2025 | 12 min read | 5.09K+ views
Share:
Table of Contents
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.
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:
Now that you know the benefits, let’s walk through 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:
Before you start installing Angular CLI, ensure that your system meets the following requirements:
Visit the official website for Node.js installation
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]
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.
node -v
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.
Now that Node.js is installed, it's time to install Angular CLI. Follow these steps:
Open the Command Prompt or Powershell.
npm install -g @angular/cli
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
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
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:
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:
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:
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?
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:
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.
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:
npm install -g @angular/cli
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.
3. Error: “npm ERR! network connectivity problem”
This error occurs when there is a problem with your internet connection or firewall settings.
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.
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.
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.
Here’s how you can create a new angular project with CLI –
ng new project-name
Replace “project-name” with the name of your project.
cd project-name
ng serve
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
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