I have searched long but didn't found the solution. You have to follow these steps:
- Install angular/cli globally
- Right after installation complete copy the path showing at the same time in terminal
- Paste that path in the PATH environment variable
- Restart the terminal this will help
AS after
npm install -g @angular/cli@latest
this path is showing like
C:\Users\rizwan.local\share\npm
copy the path and paste it into
Environment variable
like
save and run ng -v
Enjoy