Angular 4 'ng' is not recognized in Windows 10 - Solved

I was with the same problem, Angular 4 'ng' is not recognized in Windows 10. Now I discovered a working solution. After successful installation of node and angular CLI do the following steps.

As we know after node we have to run following command for angular/cli (Angular 4)

npm install -g @angular/cli

-g stands for global in your machine.

Open C:\usr\local and copy the path or the path where angular CLI located on your machine, as below image:

Now search for 'Environment Variable' in your Windows, and add copied path in the following location:

Now open environment variable in your Windows, and add copied path in the following location:

Advanced > Environment Variable > User Variables and System Variables

As below image:

add environment variable for angular cli

That's all, now open your command prompt and try with any 'ng' command, for example, create a new angular app as below image.

ng is not recognized windows in 10

Let me know if above method solved your issue for Angular 4 'ng' is not recognized in Windows 10.

Himanshu is a young engineer living in India. Currently working at Cognizant as a Senior Engineer. He is an ethical hacker & blogger too, doing lots of crazy stuff... If you seem interesting, go through his portfolio: www.himstar.info : "Open Source. Millions of open minds can't be wrong!

4 comments: On Angular 4 'ng' is not recognized in Windows 10 - Solved

Leave a reply:

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Site Footer

Sliding Sidebar

We are India’s largest Startup Community


We are team of ' Delhi Startups ' , most active startup community with strict spam policy.
We are making !deas happen..for future, business and jobs without charging anything, with connecting entrepreneurs.. It's a reason to trust on us.
Come and join or subscribe, we will defiantly give a reason to like us.

Our Facebook Page