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

Viewed 806

Windows @angular/cli@13.1.2 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

3 Answers

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

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

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

Related