I wanted to use angular version 10 so i installed it
npm install -g @angular/cli@10
when i check
ng --version
i g