'Angular CLI executable (ng) always show only the list of available commands

Windows @angular/[email protected] node -v 16.13.1 npm -v 8.1.2

ng [command]

in windows CMD always give the list of available commands, like in case of just

ng

but if I use VSCODE console it works fine



Solution 1:[1]

Clearing the NPM cache didn't work for me but running npm run ng [command] worked as a workaround.

Solution 2:[2]

Just change the terminal. The issue is being on CMD. Try bash or vscode_terminal or install a preferred one.

Solution 3:[3]

Solved. The problem was in the node version and npm cache.

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 Matt
Solution 2 ouflak
Solution 3 ????? ???????