I tried running npm install -g angular-cli
I also tried adding it to the Enviorment Variables under PATH: (C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node
You don't need to set any path. Follow the below step to resolve the problem-
Step 1- go to
C:\Users\user\AppData\Roaming and delete npm, npm-update and npm-cache folder
Step 2- run
npm install -g @angular/cli@yourangularversion again.