By using this site, you acknowledge that you have read and understand our Cookie policy, Privacy policy and Terms .


languageEnglish (United States)

Angular related

rss_feed Subscribe RSS
visibility 9268 arrow_upward arrow_downward


When you follow Angular CLI installation guide in Windows, you may encounter the following error:

ng is not recognized as an internal or external command

The resolutions are available in the following link:

This post adds more details about how to check your npm package location as each individual may have installed it in different places.


Open a Command Prompt and type the following command to check your prefix:

npm config get prefix

In my machine, the prefix is ‘D:\Packages\npm’


Add the prefix location into your PATH environment variable.

*In my environment, I’ve added a configuration file ‘.npmrc’ in my user folder. In the file, it has the following content to configure the prefix location:

prefix = "D:\\Packages\\npm"

Then the Angular CLI commands should work properly like the following screenshot:


*Please note your nodejs version needs to be 8.9 or greater to run the CLI otherwise you may encounter an error like below:

You are running version v*.*.* of Node.js, which is not supported by Angular CLI v6.
The official Node.js version that is supported is 8.9 and greater.

Please visit to find instructions on how to update Node.js.

info Last modified by Raymond at 3 months ago
info About author

info License/Terms

Please log in or register to comment. account_circle Log in person_add Register
comment Comments (3)
account_circle Mr.Captain
reply Reply
account_circle Sujit Sonarghare

Plesae solved my problem

reply Reply
account_circle Rama

ng is not recognized as an internal or external command (Windows 10)

reply Reply