How To Solve ng Is Not Recognized As An Internal Or External Command In Angular

Introduction 

 
With an operable program or batch file, this problem occurs when your path is missing something from the environment variable.

For this solution, you just need to follow a few important operations. 

Step 1
 
Go to the control panel and select the system and security options.
 
How To Solve ng Is Not Recognized As An Internal Or External Command In Angular 

Step 2

When you click on the system and security option there open a new dialogue box. Then, you have to right-click on the system.
 
How To Solve ng Is Not Recognized As An Internal Or External Command In Angular 

Step 3

When you click on the system it opens a dialogue box. Now you have to go to the advanced System setting and then click here.
 
How To Solve ng Is Not Recognized As An Internal Or External Command In Angular 

Step 4

When you click on the advanced setting there is an open dialogue box. Now you have to go to the system property and click on the environment variables. 
 
How To Solve ng Is Not Recognized As An Internal Or External Command In Angular 

Step 5

When you click on the environment variable there is an open dialogue box. Now you have seen that there is two variable that contains a system variable and user variable. Now you have to go to the user variable and click on the edit button and create your own user variable and put the pathname of this variable and then enter the path values which path you have to copy from your computer, C:\Program Files\nodejs\node_modules\npm\bin. Paste this path and click on the ok button.
 
How To Solve ng Is Not Recognized As An Internal Or External Command In Angular 

Step 6

Now you have to go to the system variable and select the path which path you have add-in user variable, and then edit this path and then you have to select the edit button and then you have to add this copied path and then click ok button.
 
How To Solve ng Is Not Recognized As An Internal Or External Command In Angular
 
How To Solve ng Is Not Recognized As An Internal Or External Command In Angular

After completing this process, you have to run the ng version command and you can see that your system shows the CLI version using the command " ng -- version".

How To Solve ng Is Not Recognized As An Internal Or External Command In Angular
 
I hope you enjoy this article to learn more about Angular follow me c#chamangautam to learn about more technology follow C#corner.