Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I tried running npm install -g angular-cli

enter image description here

I also tried adding it to the Enviorment Variables under PATH: (C:\Users\Administrator\AppData\Roaming\npm\node_modules\angular-cli\bin\ng) , with no success also. enter image description here

like image 721
SVK Avatar asked Jun 21 '17 07:06

SVK


People also ask

How do you fix Ng is not recognized as an internal or external command?

To solve the error "ng is not recognized as an internal or external command, operable program or batch file", install the angular cli globally by running npm install -g @angular/cli@latest and make sure your PATH environment variable is set up correctly.

How do you fix make is not recognized as an internal or external command operable program or batch file?

You can resolve this issue in three ways: First, use the full path of the executable file to launch the program. Second, add the program path to Windows environment variables. Finally, move the files to the System32 folder.

Why Ng is not working in VS code?

You just need to close the visual studio code and restart again. But to get the ng command work in vs code, you need to first compile the project with cmd in administrator mode.


1 Answers

You can also try:

 > npm run ng <command> 
like image 166
Felix Too Avatar answered Sep 29 '22 23:09

Felix Too