Why this happens?
Simple answer is that whenever you install angular-cli for some reasons the address of NPM in system variables got deleted or edited.
Solution
I tried everything from google but nothing works for me. But when i save the NPM address in system variables suddenly all ng commands started working for me.
what my NPM address looks like
"C:\Users\Inam Ul Huq\AppData\Roaming\npm" without double quotes.
After doing this i just restarted my command line and executed 'ng-v' command. and got this result.
this is how i saved my system variable.you can ask me more in comments.
After doing this i just restarted my command line and executed 'ng-v' command. and got this result.
this is how i saved my system variable.you can ask me more in comments.
I hope this will help you :) if you are facing any problem please let me know.
![ng is not recognized as an internal or external command [SOLVED] ng is not recognized as an internal or external command [SOLVED]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3HfxDCK5l5rMrdIlNzNcHodTBpG5Z-ZoDstoXdQsE19G8Vh-C45wNgyDmEf-Vja8jTtp2mPDnFVrE6Q2MhYGPiZNbGySv6lDG4aq4zacPnaFRs4dHpjlrZtv6SVS9WVmTzEmM264G9lc8/s640/2017-06-23_1119.png)
![ng is not recognized as an internal or external command [SOLVED] ng is not recognized as an internal or external command [SOLVED]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgA3FUS-JFrt_AgqWPLLfxXAKZiXJGIcJNhilJl_Elxjbas9B7F3p_N3PN-fKauYgdDNguPhOJ7F8i4C5t16VO6PnmG5weptbZ9EDXjD3DeG11YDu10KY_n4BxNjvp_fw1mVW5FlkAlTAfl/s640/2017-06-23_1123.png)
Thnx alot I searched for hours and this helped to save my day
ReplyDeleteThank you so much man..It's one and half day & I didn't get but once I saw your solution it worked...tqsm
ReplyDeleteThanks it is works
ReplyDelete