This solved it for me
npm cache clean --force
then run
npm install -g @angular/cli@latest ng new 'your-angular-app-name'
npm install -g @angular/cli@latest
ng new 'your-angular-app-name'