Skip to content

Instantly share code, notes, and snippets.

@Makiah
Created November 27, 2017 18:04
Show Gist options
  • Save Makiah/cac58b0b9c69acb9161a57fa36890b34 to your computer and use it in GitHub Desktop.
Save Makiah/cac58b0b9c69acb9161a57fa36890b34 to your computer and use it in GitHub Desktop.
Updates the Angular project version (both global CLI and local)
#! /bin/bash
# Based on https://stackoverflow.com/questions/43931986/how-to-upgrade-angular-cli-to-the-latest-version
npm uninstall -g angular-cli
npm cache clean
npm install -g @angular/cli@latest
rm -rf node_modules
npm uninstall --save-dev angular-cli
npm install --save-dev @angular/cli@latest
npm install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment