#!/bin/bash

npm uninstall -g @angular/cli
npm cache clean
npm install -g @angular/cli@latest
rm -rf node_modules dist 
npm install --save-dev @angular/cli@latest
npm install

#!/bin/bash

npm uninstall -g @angular/cli
npm cache clean --force
npm install -g @angular/cli@latest
rm -rf node_modules dist
npm install --save-dev @angular/cli@latest
npm install

Update to force cache clean
Update to force cache clean
