ng --version
npm uninstall -g @angular/cli
npm cache clean --force
Delete the C:\Users<user>\AppData\Roaming\npm\node_modules@angular and and C:\Users<user>\AppData\Roaming\npm-cachefolder. if it exists after uninstalling
npm install -g @angular/cli
ng version
npm -v
node -v
Build angular project
ng build [project] --configuration production