This solved it for me:
Open Windows Powershell as admin
npm cache clean --force
npm install -g @angular/cli
Getting Started with Node.js, Angular, and Visual Studio Code
This solved it for me:
Open Windows Powershell as admin
npm cache clean --force
npm install -g @angular/cli
Getting Started with Node.js, Angular, and Visual Studio Code