Sometimes some projects require a specific angular version to work with other used project tools as mentioned in package.json, So follow the below steps to Install a specific angular-cli version.
Remove currently installed angular
sudo npm uninstall -g @angular/cli
npm cache clean --force
Install specific angular-cli
npm install -g @angular/cli@15.20.2