'why running angular command always show the list of command available

Similar to this question Angular CLI executable (ng) always show only the list of available commands

I am facing the same issue. whenever I run any angular command in windows CMD it will always shows the list of command available instead of executing the command

in this example I run ng --version in windows terminal and powershell.

CMD Screenshot

but it works in powershell

Powershell screenshot



Solution 1:[1]

The correct command is ng version in order to check the version of Angular CLI

https://angular.io/cli/version

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dale Nguyen