npm -g list command I can see installed Angular globally but when I run the ng --version it is giving
this error ng: The term 'ng' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ ng --version
+ ~~
+ CategoryInfo : ObjectNotFound: (ng:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
I have deleted node and npm from my pc and reinstalled them, but it is still not working.
First: Install CLI by writing->>>: npm install -g @angular/cli Second:if you want check your version writing -->>>:
*ng v OR ng version*