"Ng" Is Not Recognized As An Internal Or External Command Code Example

In this article, you will learn how to solve ng is not recognized as an internal or external command in Angular.

Bạn đang xem: "ng" is not recognized as an internal or external command code example


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

When you click on the system and security option there open a new dialogue box. Then, you have to right-click on the system.
*

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

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.

Xem thêm: 1️⃣ Phim Hk Hài Như Lai Thần Chưởng, Phim Hong Kong


*

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

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.

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


I hope you enjoy this article to learn more about Angular follow mec#chamangautamto learn about more technology follow C#corner.