I am using Node 8.9.3 and npm 5.5.1 and I have installed Angular latest version with this command:
npm install -g @angular/cli@latest
Then, I set the path in the environment variable as
PATH C:\Users\User\AppData\Roaming\npm\node_modules\@angular\cli\bin
Finally I run
ng --version
which results the following error:
'ng' is not recognized as an internal or external command, operable program or batch file.
Please help me in fixing this error.