ng is not recognized as an internal or external command operable program or batch file
- Here I installed angular using
npm install -g @angular/cli
- when I try to execute
ng --versioncommand in command prompt getting below
C:\Users\XXXX>ng --version 'ng' is not recognized as an internal or external command, operable program or batch file.
- Execute the below command in command prompt we will be getting the
npm config get prefix
- The path I got is
- Go to Environment variables and Add the above
variableas shown below and save it.
- restart the command prompt and check the angular version again by using