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.

* Is this helped you? you can gift us a coffee or share your feedback*

Himanshu is young engineer living in India. Currently working at BOLD.com as UI Engineer. He is an ethical hacker & blogger too. Doing lot's of crazy stuff... If you seems interesting, go through portfolio: www.himstar.info

Leave a reply:

Your email address will not be published.

Sliding Sidebar

We have 20,000+ active geeks


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