#!/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

#!/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

--- 
+++ 
@@ -1,8 +1,8 @@
 #!/bin/bash
 
 npm uninstall -g @angular/cli
-npm cache clean --force
+npm cache clean
 npm install -g @angular/cli@latest
-rm -rf node_modules dist
+rm -rf node_modules dist 
 npm install --save-dev @angular/cli@latest
 npm install
Update to force cache clean
