How to Install Angular CLI in Windows 10
Updated on Sep 10, 2025 | 8 min read | 5.94K+ views
Share:
For working professionals
For fresh graduates
More
Updated on Sep 10, 2025 | 8 min read | 5.94K+ views
Share:
Table of Contents
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.
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:
Software Development Courses to upskill
Explore Software Development Courses for Career Progression
Before you start installing Angular CLI, ensure that your system meets the following requirements:
Visit the official website for Node.js installation
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
Subscribe to upGrad's Newsletter
Join thousands of learners who receive useful tips
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.
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
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
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.
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.
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.
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.
When facing permission issues while installing Angular CLI in a project folder, try the following steps:
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.
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.
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.
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
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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
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