arshad
arshad

Reputation: 369

Angular CLI - 'ng' is not recognized as an internal or external command, operable program or batch file

I installed Angular CLI version:7.3.5, Node Server version: v8.12.0 and NPM version 6.9.0, but when I run any ng command on Windows command prompt, it shows an error like:

'ng' is not recognized as an internal or external command, operable program or batch file.

When I run any ng command on VS Code terminal, I get an error like:

bash: ng: command not found

My ng command is only working on Node.js command prompt.

Upvotes: 0

Views: 705

Answers (1)

Flash
Flash

Reputation: 1014

That usually means you don't have node or you didn't install the angular CLI. First make sure you have node. If you just installed it sometimes you just have to restart your machine. Then run:

npm install -g @angular/cli

Upvotes: 1

Related Questions