-6

C:\Users\Vivek Ghanchi>ng 'ng' is not recognized as an internal or external command, operable program or batch file.

I have installed angular CLI but it is showing me the ng is not recognized is there any solution

Carlos Mermingas
  • 3,602
  • 2
  • 20
  • 39
Vivek Ghanchi
  • 192
  • 2
  • 15
  • Have you installed Angular CLI globally? Is it included in the PATH variable? – Tushar Jul 06 '17 at 04:08
  • Possible duplicate of [fixing npm path in Windows 8](https://stackoverflow.com/questions/27864040/fixing-npm-path-in-windows-8) – Onic Team Jul 06 '17 at 05:57

4 Answers4

1

You should install angular cli by enter the following command:

npm install -g @angular/cli
Koray Tugay
  • 21,794
  • 41
  • 171
  • 299
huydq5000
  • 264
  • 1
  • 8
1

Use; Environment Tables -> System variables -> Path:

C:\Users\*'Your User'*\AppData\Roaming\npm

not

C:\Users\Administrator\AppData\Roaming\npm**\node_modules\angular-cli\bin**

Be aware that the path should point to YOUR USER work directory if You are not working on Administrator account.

Willem van Ketwich
  • 4,977
  • 7
  • 47
  • 54
Nortberg
  • 11
  • 2
0

I solved it few days ago, after having the same problem with other global modules, by adding to:

Environment Tables -> System variables -> Path:

C:\Users\Administrator\AppData\Roaming\npm\node_modules\angular-cli\bin;C:\Program Files\MongoDB\Server\3.2\bin

Note that it must not have any spaces after ; That turned out to be my problem.

0

Use this link to know about angular CLI. After installing Angular CLI you can able to see workable ng command.

Shanmugaraja_K
  • 1,253
  • 2
  • 10
  • 24