I solved this problem in accordance with the figure as mentioned below:
run in cmd
npm install -g @angular/cli
Open in Windows 10) Control Panel\All Control Panel Items\System or accordance with the figure
step 2 :
Step 5: Include the missing ng path
Mentioned below is a new environment variable that you need add:
To conclude, please restart all opened command prompts and try again.